getgrav / grav-plugin-highlight

Grav Highlight Plugin
https://getgrav.org
MIT License
29 stars 11 forks source link

Defer loading of JavaScript #11

Closed msdundar closed 5 years ago

msdundar commented 7 years ago

According to Google's PageSpeed Insights:

Eliminate render-blocking JavaScript and CSS in above-the-fold content. Your page has 1 blocking script resources and 3 blocking CSS resources. This causes a delay in rendering your page. None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.

Remove render-blocking JavaScript:

https://www.example.com/user/plugins/highlight/js/highlight.pack.js

Can you please update the plug-in for loading JS files asynchronously?