Problem of cache - as per google insights

I tried to run google insights to perform a speed test, and I get the following issue that I should fix:

Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 3 blocking script resources and 10 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:
mysite/js/jquery-2.1.0.min.js
mysite/js/bootstrap.min.js
mysite/js/blocs.min.js
Optimize CSS Delivery of the following:
mysite/css/bootstrap.min.css
mysite/style.css
mysite/css/animate.min.css
mysite/css/font-awesome.min.css
mysite/css/feather.min.css
mysite/css/ionicons.min.css
_https://fonts.googleapis.com/…css?family=Delius&subset=latin,latin-ext_
_https://fonts.googleapis.com/…css?family=Oswald&subset=latin,latin-ext_
_https://fonts.googleapis.com/…Gloria+Hallelujah&subset=latin,latin-ext_
_https://fonts.googleapis.com/…family=Montserrat&subset=latin,latin-ext_
Hide details

How this can be fixed ?

After export move the jS files to the end of the Body tag.

Blocs loads some JS before the page to handle things like the pre-loader and hero blocs. Moving it so it loads after the page renders the HTML may cause unwanted loading flash if you use animations etc.

Anybody find an answer to this yet? I have tried a few things but with no luck. Moving the files evrytime I export would get old. Is there something in the htaccess file that can writen to force this?

How do you move this? What file do i find the code to edit? Also can you make this an option in export setting. This would help alot of sites improve their speeds and therefor the loading animation would not be needed by most

1 Like

I thought I would bump this as nobody has an answer yet? @Norm I have message you with no response. This is very important and should be fixed as all blocs sites have this issue

2 Likes

Yeah I’ll be adding the loading order of JS in future. As for CSS that would ideally need to be inline which is not somthing I’ll be working on anytime soon.

1 Like