Keyword

Loading too many render blocking scripts

  • Josh Wilkinson
  • Josh Wilkinson's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago #165855 by Josh Wilkinson
Loading too many render blocking scripts was created by Josh Wilkinson
I have a website that is getting penalized on the Google Insights Pagespeed scores because of too many render block JavaScript files. I am using this extension on a number of websites all of which are running JCH Optimize but I was wondering if all of these JavaScript files are required for a youtube video embed? I thought youtube had their own scripts and these would not be needed.

HEre are the scripts that are loading:
www.maneimagehair.com/plugins/content/jw_allvideos/jw_allvideos/includes/js/behaviour.js?v=4.8.0
www.maneimagehair.com/plugins/content/jw_allvideos/jw_allvideos/includes/js/wmvplayer/silverlight.js?v=4.8.0
www.maneimagehair.com/plugins/content/jw_allvideos/jw_allvideos/includes/js/wmvplayer/wmvplayer.js?v=4.8.0
www.maneimagehair.com/plugins/content/jw_allvideos/jw_allvideos/includes/js/quicktimeplayer/ac_quicktime.js?v=4.8.0
www.maneimagehair.com/plugins/content/jw_allvideos/jw_allvideos/includes/js/jwplayer/jwplayer.js?v=4.8.0

I have disabled this extension and we get a score increase of almost 15 points.

Here is a screenshot of the Pagespeed info: www.dropbox.com/s/5kyw5k5ut3i8s8p/Screen%20Shot%202017-12-13%20at%2011.13.26%20AM.jpg?dl=0

Is it possible to turn these off?

I am running Joomla 3.8.2 and AllVideos 4.8.0

Thank you for any information that you can provide to help.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 4 months ago #165901 by Krikor Boghossian
Replied by Krikor Boghossian on topic Loading too many render blocking scripts
Hello,
Which video formats are you using?
Without most of these scripts the plugin will not work properly.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago - 6 years 4 months ago #165990 by Gabor Lukacs
Replied by Gabor Lukacs on topic Loading too many render blocking scripts
I am experiencing the same problem, and it has two interrelated reasons as far as I can see:

1. The scripts are not marked as "deferred" (even though they appear to be working that way too).

2. The scripts are inserted in a way that makes JCH include them as separate, non-deferred scripts.

There is also a second, related problem: the scripts are not minified.

I would propose the following fix for the developers:

(a) minify the scripts using a standard tool; and

(b) add an option to have the scripts marked as "deferred."

This issue has previously appeared in this post:

www.joomlaworks.net/forum/allvideos/48699-loading-too-many-render-blocking-scripts#165990
Last edit: 6 years 4 months ago by Gabor Lukacs.

Please Log in or Create an account to join the conversation.

  • Josh Wilkinson
  • Josh Wilkinson's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago #166010 by Josh Wilkinson
Replied by Josh Wilkinson on topic Loading too many render blocking scripts
all of our videos are from youtube.

Are all of these scripts even necessary use us e a youtube video? I know that they have their own scripts that load with the embed code.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum