Script depending to other
-
Hello
Very very good plugin that greatly improve speed of website.
Just one option which can be interested to develop is the loading of script that depends to other.
For example jqueryui depends on jquery. So if jqueryui is loaded when jquery is not finnished to be fully loaded then the jqueryui scripts will not work and induce errors.
One solution i used before was to have a callback function that executed once the first script is loaded. So inside the document.body.appendChild(myScript);
myScript.onreadystatechange = callback;
myScript.onload = callback;
For each script in the include keywords, it can be interested to get the possibility to add depends scripts.
What do you think the plugin developpers?
The topic ‘Script depending to other’ is closed to new replies.