Jump to content

Render blocking javascript above the fold


Sheffielder

Recommended Posts

Posted

Google is warning me I've got some render blocking javascript going on 'above the fold'

There's about 9 javascript instances in the uploads folder causing it - an example below

Any ideas?

/forums/uploads/javascript_core/global_global_core.js.7a6c90487eed64a6a825c4c65fdf0142.js?v=c5abb81381
 

There error message from Google is

Eliminate render-blocking JavaScript and CSS in above-the-fold content

Your page has 8 blocking script resources and 7 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.
 
 
Posted
On 8.11.2016 г. at 11:31 AM, Sheffielder said:

 

Eliminate render-blocking JavaScript

 

Customization - Theme - Edit your theme - Custom: Javascript include location - Mark " Just before </body> tag "

Posted
3 hours ago, Adlago said:

Customization - Theme - Edit your theme - Custom: Javascript include location - Mark " Just before </body> tag "

Yeah I have that active and still get the message, have attached what it says

jscss.png

Posted

Google Page Speed is showing you areas where you MIGHT improve things, if that works for your site. But that’s just an algorithm talking. You might actually not want to deliver your site with certain JavaScripts and CSS rules loaded later. 

Just for fun, I just picked the first Google owned web forum I could find and let it check in Google Pagespeed. I got only 70/100 with the same page blocking warning. Even Google has no problem delivering forums like this. ;-) 

Posted
25 minutes ago, marklcfc said:

Yeah I have that active and still get the message, have attached what it says

I think you have a problem with your desktop theme.

The mobile version of your theme work properly and JS are not a problem

mob.png

Desktop version don't load ads. This render blocking all resources JS and CSS.

desk.png

Refer to the author of your theme upgrade.

Posted
22 minutes ago, opentype said:

Yeah, your site loads fine WITH blocking resources. That’s my point actually!

Effects of render blocking JS is 4 points. So only is this dependence. To speed site are many factors influencing and I agree with you.

Here is an example my site JS in header Site

desk2.png

Posted
4 hours ago, Adlago said:

Desktop version don't load ads. This render blocking all resources JS and CSS.

 

It is the same theme though, js/css is in the same place for both

Posted
6 minutes ago, marklcfc said:

It is the same theme though, js/css is in the same place for both

I see that the theme is the same. But your theme work properly for mobile. For desk has a problem. Probably outdated templates ...

Posted
19 minutes ago, Adlago said:

I see that the theme is the same. But your theme work properly for mobile. For desk has a problem. Probably outdated templates ...

Some templates have been edited, but I did look at theme differences whenever upgrading and made sure to update them. Any idea which template could be the issue? globaltemplate looks ok to me and that seems to be the one where it sets the js

Posted
11 minutes ago, Adlago said:

Check 'core-global-global-includeJS'

It's default, I remember it was edited at one stage but I reverted the template ages ago.

  • 3 weeks later...
Posted

@Sheffielder

It's very easy.;)

Many years reading, analysis, testing - too many different web tests ... etc
When IPS started 4.0 I noticed very much effort saving ... so I became a client. ha ha...

For me it is very easy ... and now if you do test my live site will get the same results. If you do the test result GtMetrix will receive 100% speed score:)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...