Trying to remove render blocking JS above the fold #fail
-
This is what I have entered just before the /body tag in the footer php. I’m using Hueman theme (child theme). Google page speed still reports this as a problem so it hasn’t been addressed. What am I doing wrong? I’ve tried with and without the version number.
<script type="text/javascript"> function downloadJSAtOnload() { var element = document.createElement("script"); element.src = "/public_html/wp-includes/js/jquery/jquery-migrate.min.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>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Trying to remove render blocking JS above the fold #fail’ is closed to new replies.