* Note: client side expects that loading indicator has a height. It depends on
* this css property to ensure browsers have applied all required styles.
*/
-
.i-loading-indicator,
.i-loading-indicator-delay,
.i-loading-indicator-wait {
* Note: client side expects that loading indicator has a height. It depends on
* this css property to ensure browsers have applied all required styles.
*/
-
.i-loading-indicator,
.i-loading-indicator-delay,
.i-loading-indicator-wait {
static final int MAX_CSS_WAITS = 20;
private void handleWhenCSSLoaded(final Response response) {
- int heightOfLoadElement = DOM.getElementPropertyInt(loadElement, "offsetHeight");
+ int heightOfLoadElement = DOM.getElementPropertyInt(
+ loadElement, "offsetHeight");
if (heightOfLoadElement == 0
&& cssWaits < MAX_CSS_WAITS) {
(new Timer() {
}
}).schedule(50);
console
- .log("Assuming CSS loading is not complete, postponing render phase. (.i-loading-indicator height == 0)");
+ .log("Assuming CSS loading is not complete, "
+ + "postponing render phase. "
+ + "(.i-loading-indicator height == 0)");
cssWaits++;
} else {
handleReceivedJSONMessage(response);
}
private void endRequest() {
-
checkForPendingVariableBursts();
-
activeRequests--;
// deferring to avoid flickering
DeferredCommand.addCommand(new Command() {