Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Eliminate render-blocking resources

Started by Mirek 7 years ago · 1 replies · 1008 views
7 years ago

HI,
I am new to GRAV and I apologize for the silly question but how to do it:
"Eliminate render-blocking resources".
PageSpeed Insights shows me
/assets/3b82071….css?g-8839a8e6
and
/assets/b25effd….js?g-8839a8e6.
How to change it in GRAV. How to eliminate it (I know that I should transfer to the end of loading but how?)? Thank you for any help.

7 years ago

You'll have to adapt the templates, or use a theme that supports this, generally by it loading all scripts after the rest of the DOM and minimizing CSS-usage before the DOM starts to render.

Eliminating render-blocking resources is a process which requires putting some thought into the structure of the theme, and unless PageSpeed Insights suggest that there are severe issues, the investment of time to fix this is not often warranted. You can achieve 100% PageSpeed score, but you'll get far by just making sure the templates are sensibly written.

You can read more about the structure of a typical base.html.twig in the docs.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 128 20 hours ago
General · by pamtbaau, 1 day ago
1 89 1 day ago
General · by Andy Miller, 2 days ago
0 73 2 days ago
General · by Marcel, 12 months ago
6 382 5 days ago
General · by Duc , 6 days ago
3 69 6 days ago