Only lazyload YouTube iframes
-
Hello,
I’ve been using this plugin for a while with no problems, it’s great! So good that I decided to also go with WP Rocket, but WP Rocket’s YouTube lazyload didn’t work for me so I went with this one for lazy loading images, videos and iframes.
Now I have an ad partner who tells me I need to disable lazy loading iFrames because it will conflict with the ads. But I am using the standard YouTube embed block everywhere on my site so disabling it will make all my pages significantly slower.
How can I lazy-load only YouTube iframes and not all other iframes? So it only checks if the iframe is a YouTube video and then proceeds. It will be very beneficial for sites who both want lazy loaded YouTube videos but also need to run ads.
The checkbox for “Replace Youtube videos by thumbnail” does not work for me unless the “Iframes & Videos” checkbox is also selected”.
Thank you
- The topic ‘Only lazyload YouTube iframes’ is closed to new replies.