Delay script loading

you are almost there.

in your settimeout callback function do the following:

var script = document.createElement('script');
script.src = "http://whatever.com/the/script.js";
document.getElementsByTagName('head')[0].appendChild(script);

Leave a Comment