Video Embed large Javascript parsing

Hi there,
We have 4 embedded videos on our homepage www.allwastematters.co.uk but these are causing very slow load times and the following errors on GTmetrix. Are you able to login and rectify this for me please?

Many thanks,
Stewart

Defer parsing of JavaScript
F (0)
JS HIGH
What’s this mean?
8.4MiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/player-vflxuxnEY/en_US/base.js (998.8KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vflIRzPSg/www-embed-player.js (73.2KiB)
https://www.youtube.com/embed/L6YhlTnENHY?rel=0&controls=0&wmode=transparent (3.1KiB of inline JavaScript)
https://www.youtube.com/embed/M8ORT6lgIq0?rel=0&controls=0&wmode=transparent (3.1KiB of inline JavaScript)
https://www.youtube.com/embed/nA81cN3_4AQ?rel=0&controls=0&wmode=transparent (3.1KiB of inline JavaScript)
https://www.youtube.com/embed/LI4tfSkyvNE?rel=0&controls=0&wmode=transparent (3.1KiB of inline JavaScript)
https://www.youtube.com/embed/L6YhlTnENHY?rel=0&controls=0 (3.1KiB of inline JavaScript)
https://www.youtube.com/embed/nA81cN3_4AQ?rel=0&controls=0 (3.1KiB of inline JavaScript)
https://www.youtube.com/embed/LI4tfSkyvNE?rel=0&controls=0 (3.1KiB of inline JavaScript)
https://www.youtube.com/embed/M8ORT6lgIq0?rel=0&controls=0 (3.1KiB of inline JavaScript)

Optimize the order of styles and scripts
F (38)
CSS/JS HIGH
What’s this mean?
The following external CSS files were included after an external JavaScript file in https://salesiq.zohopublic.eu/allwastematters/chatwindow.ls?src=script&type=float&referrer=&pagetitle=Lab%20Waste%20Disposal%20|%20Hazardous%20Waste%20Disposal%20UK|%20Waste%20Paint%20Disposal&embedname=allwastematters&cpage=aHR0cHM6Ly93d3cuYWxsd2FzdGVtYXR0ZXJzLmNvLnVrLw%3D%3D&currdomain=allwastematters.co.uk&autochat=false&embedtheme=blue&lang=en&loadedtime=1517993368869. To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript.

https://css.zohostatic.eu/salesiq/Feb_06_2018_1_https/styles/embedtheme1.css
The following inline script blocks were found in https://www.youtube.com/embed/L6YhlTnENHY?rel=0&controls=0 between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #3
The following inline script blocks were found in https://www.youtube.com/embed/L6YhlTnENHY?rel=0&controls=0&wmode=transparent between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #4
The following inline script blocks were found in https://www.youtube.com/embed/LI4tfSkyvNE?rel=0&controls=0 between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #3
The following inline script blocks were found in https://www.youtube.com/embed/LI4tfSkyvNE?rel=0&controls=0&wmode=transparent between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #3
The following inline script blocks were found in https://www.youtube.com/embed/M8ORT6lgIq0?rel=0&controls=0 between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #3
The following inline script blocks were found in https://www.youtube.com/embed/M8ORT6lgIq0?rel=0&controls=0&wmode=transparent between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #4
The following inline script blocks were found in https://www.youtube.com/embed/nA81cN3_4AQ?rel=0&controls=0 between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #3
The following inline script blocks were found in https://www.youtube.com/embed/nA81cN3_4AQ?rel=0&controls=0&wmode=transparent between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #3

Hi There,

Upon checking your website, I could see that it has 28 active plugins.

Please try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Hope it helps.

Hi I’ve tried this as suggested but it is still bringing the same errors and loading slowly. Any other suggestions?

Many thanks, Stewart

Hi Stewart,

I tried to login but the credentials is not working anymore.
There’s JS error: https://screencast-o-matic.com/watch/cFniYNopPh
Please try to exclude JS files from minification. Then clear cache and check again.

Lazy loading the video might help improve the performance of your homepage. See the following guide:


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.