Youtube – Defer parsing of JavaScript
-
I have lazy loading of images and videos turned on. Theme loader function is in the footer. I use the Twenty Fourteen theme.
I think lazy load is working only partially for my Youtube videos. I still get “Defer parsing of JavaScript” in GTmetrix:
https://www.youtube.com/yts/jsbin/player-vflT670_e/en_US/base.js (1.0MiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vfl-ZigeM/www-embed-player.js (90.2KiB)
https://www.youtube.com/embed/eRr8q6PvpYg?rel=0 (3.2KiB of inline JavaScript)The first base.js is 1.0MiB, which is probably causing the issue.
Any ideas to fix this?
An example of how I am loading the Youtube video is:
<iframe src=”https://www.youtube.com/embed/bUFQNjjItok?rel=0″ width=”560″ height=”315″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>The page I need help with: [log in to see the link]
- The topic ‘Youtube – Defer parsing of JavaScript’ is closed to new replies.