Eliminate render-blocking JavaScript and CSS in above-the-fo

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Jun 16, 2014 8:34 pm
Reply with quote
Report this post
Hello,

In google page-speed i'm getting Consider Fixing :

Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 1 blocking script resources and 6 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.

How can i put js and css in above-the-fold content?

Regards
User avatar
Senior Boarder

GK User
Tue Jun 17, 2014 12:42 am
Reply with quote
Report this post
Hello,

In order to fix this problem you should put the JS at the end of the document body (impossible to do with addScript functions in Joomla) and separate from the CSS code which is use only for the top part of the page (above the fold) and then put it in the head section as style tag.
User avatar
Administrator

GK User
Sat Jun 21, 2014 7:06 pm
Reply with quote
Report this post
Ok i see thank you
User avatar
Senior Boarder

GK User
Wed Jul 09, 2014 1:26 am
Reply with quote
Report this post
and how can I do that? :shock: can you help me or were can I learn to do that?
User avatar
Expert Boarder

GK User
Wed Jul 09, 2014 11:13 am
Reply with quote
Report this post
@acropolis - AFAIK there is no tutorials about it - for every template there is a different solution and in general you won't be able to avoid this problem, because you will still get a message about the JS files in the head section (you cannot move it if you want to use the API functions for adding JS files).
User avatar
Administrator

GK User
Wed Jul 09, 2014 4:43 pm
Reply with quote
Report this post
Ok, understand. Thanks for answer :D
User avatar
Expert Boarder


cron