defer loading of javascript
-
hi,
can you add some options to add scripts and css with defer loading?
like:<script type="text/javascript"> function downloadJSAtOnload() { var element = document.createElement("script"); element.src = "myscript.js"; document.body.appendChild(element); } if (window.addEventListener) window.addEventListener("load", downloadJSAtOnload, false); else if (window.attachEvent) window.attachEvent("onload", downloadJSAtOnload); else window.onload = downloadJSAtOnload; </script>
it’s one of pagespeed recommendation!
** and please do NOT remove CDN options from your plugin it’s why i use your plugin!
thanks in advance
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘defer loading of javascript’ is closed to new replies.