Youtube video lazyload and image preview




Wordpress LScache Plugin: Youtube video lazyload and image preview

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, Can the plugin help me with Pagespeed optimization about embedded Youtube videos? I would love to setup something like this: don?t import youtube external JS files to page, but show some image replacement instead of embed youtube video and after visitor?s click on the image ? get youtube?s JS files and run them and play video. can this be done with Litespeed? Thank you Lucka Hello @luckacv Even though not sure exactly how you want to implement this, but sounds like you can link that image to a js file, and run that js file when the image is clicked? You can exclude that js file from optimization. Just some thoughts when seeing this. Regards, Abe



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference