Eliminate Render-blocking Javascript And CSS In Above-the-fold Content - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Eliminate Render-blocking Javascript And CSS In Above-the-fold Content (1544 Views)
| Eliminate Render-blocking Javascript And CSS In Above-the-fold Content by asadul549(op): 9:59pm On Nov 07, 2016 |
I researched a lot about this problem. Please see my attachment. I added this script to get out of this error form google page speed insights tool. But still its showing that file. How to solve it? <script type="text/javascript"> function downloadJSAtOnload() { var element = document.createElement("script" ;element.src = "wp-content/plugins/LayerSlider/static/js/greensock.js?ver=1.11.8"; 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>
|
| Re: Eliminate Render-blocking Javascript And CSS In Above-the-fold Content by asadul549(op): 4:05pm On Nov 08, 2016 |
Can anyone help? |
| Re: Eliminate Render-blocking Javascript And CSS In Above-the-fold Content by webdeveloperqx: 10:42am On Nov 09, 2016 |
i see that your site is on wordpress, if you want to remove the file. login via your cpanel, locate the current theme folder , navigate to functions.php file. search for the "greenstock" and and comment that line out with "//". that should remove the code block enqueuing that file. hope you understand. |
| Re: Eliminate Render-blocking Javascript And CSS In Above-the-fold Content by jemois: 11:44pm On Dec 06, 2016 |
Have you tried generating the css for the sbove the fold content with services like the one from sitelocity ? |
Learn HTML And CSS In Few Days - Step By Step Tutorial By Professionals • How To Give Access Or Permit To Every User And His Own Css In Php • Learn WebDesign Programming HTML And CSS In Awka Anambra State • 2 • 3 • 4
You Want To Learn 2D/3D Animation? • Please Recommend Good Django Tutorial • In Need Of 3 Web Developer To Work With On A New Project
;