Hello,
I would like to defer the parsing of the jquery library, but I'm not sure if I should add the code to the use-google-libaries.php file or in my WordPress installation. Here's the script that I typically use:
http://code.google.com/speed/page-speed/docs/payload.html#DeferLoadingJS
<script type="text/javascript">
// Add a script element as a child of the body
function downloadJSAtOnload() {
var element = document.createElement("script");
element.src = "deferredfunctions.js";
document.body.appendChild(element);
}
// Check for browser support of event handling capability
if (window.addEventListener)
window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtOnload);
else window.onload = downloadJSAtOnload;
</script>
=================================================
Any thoughts?