no delay necessary on iitc-script injection
This commit is contained in:
parent
97ddeafba8
commit
d30692399c
@ -132,12 +132,9 @@ public class IITC_WebViewClient extends WebViewClient {
|
||||
// add all plugins to the script...inject plugins + main script simultaneously
|
||||
js += parsePlugins();
|
||||
|
||||
// need to wrap the mobile iitc.js version in a document ready. IITC
|
||||
// expects to be injected after the DOM has been loaded completely.
|
||||
// Since the mobile client injects IITC by replacing the gen_dashboard
|
||||
// file, IITC runs to early. The document.ready delays IITC long enough
|
||||
// so it boots correctly.
|
||||
this.mIitcScript = "setTimeout(function(){" + js + "},1);";
|
||||
// IITC expects to be injected after the DOM has been loaded completely.
|
||||
// since it is injected with the onPageFinished() event, no further delay is necessary.
|
||||
this.mIitcScript = js;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user