Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Render Blocking Javascript and CSS in the Above-the-fold content #62

Open
asadkhalili opened this issue Jan 30, 2018 · 1 comment

Comments

@asadkhalili
Copy link

Hi
Thanks.
I want to solve this problem by putting the following code:

<script type="text/javascript"> function downloadJSAtOnload() { var element = document.createElement("script"); element.src = "defer.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>

How do I get the name of the compressed Js file and put this code in page?

@kwazaro
Copy link

kwazaro commented Oct 5, 2018

Same problem. Is there any possibility to add smth like cssPosition property or additional parameters to tag (like "prefetch" or "preload")? Or render minified CSS code directly inside <style>...</style> tag? For Google Pagespeed purposes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants