From 64098e1f6c9d15a0cdd615f6544053871c58364e Mon Sep 17 00:00:00 2001 From: Dav Glass Date: Mon, 2 Apr 2012 10:26:56 -0500 Subject: [PATCH] Fixes #2532096 - Force Chrome on Android to poll for dynamic CSS --- src/get/js/get.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/get/js/get.js b/src/get/js/get.js index 7e70a8da184..91f2627450a 100644 --- a/src/get/js/get.js +++ b/src/get/js/get.js @@ -536,8 +536,9 @@ Y.Get = Get = { // Firefox 9+, and WebKit 535.24+. Note that IE versions <9 fire the // DOM 0 "onload" event, but not "load". All versions of IE fire // "onload". - cssLoad: (!ua.gecko && !ua.webkit) || - ua.gecko >= 9 || ua.webkit >= 535.24, + // davglass: Seems that Chrome on Android needs this to be false. + cssLoad: ((!ua.gecko && !ua.webkit) || + ua.gecko >= 9 || ua.webkit >= 535.24) && !(ua.chrome && ua.mobile), // True if this browser preserves script execution order while // loading scripts in parallel as long as the script node's `async` @@ -1061,6 +1062,7 @@ Transaction.prototype = { self._progress(null, req); } + // Deal with script asynchronicity. if (isScript) { node.setAttribute('src', req.url);