≡ Menu

Issue with LazyLoad for iframes and videos

19 Jan 2017

Confirmed with Lucy from WP Rocket that as of version 2.9.2, activating LazyLoad for iframes and videos would result to iframes and videos being treated like pages.

You won’t experience it anymore because I already temporarily deactivated LazyLoad for iframes and videos until it’s fixed.

For example, if you visited my post last 01 Jan 2017 from the home page, it would lazy load the two YouTube videos I have there. And when you click on “back”, it would not take you back to the home page immediately, because it would have to undo the LazyLoad for the second video. And when you click on “back” again the second time, it would still not take you to the home page, because it would have to undo the LazyLoad for the first video. Only after clicking on “back” the third time that it would take you to the home page.

It’s as if there are three pages on one page, and that would defeat the purpose of having activated LazyLoad for iframes and videos in the first place, which is to reduce the number of HTTP requests and improve the loading time, because it would have a negative impact on a user’s experience.

Thank you, Lucy, for confirming this issue, and for providing a solution for now.

I would also like to thank Caspar (also known as glueckpress on GitHub) from WP Rocket for reproducing this issue on their GitHub repository.