Use placeholder images for YouTube videos
YouTube embeds an iFrame and loads several resources:
Downloads an HTML file, one CSS, and two/three (heavy) JS files which are more than 500KB.
Extra DNS lookups to www.youtube.com, i.ytimg.com etc.
You can replace YouTube embeds with a placeholder image. The YouTube video (iFrame) will be loaded only on click/touch. So, only a single image is downloaded instead of loading several iframe resources.
FlyingPress will also self-host this placeholder image.
Downloads an HTML file, one CSS, and two/three (heavy) JS files which are more than 500KB.
Extra DNS lookups to www.youtube.com, i.ytimg.com etc.
You can replace YouTube embeds with a placeholder image. The YouTube video (iFrame) will be loaded only on click/touch. So, only a single image is downloaded instead of loading several iframe resources.
FlyingPress will also self-host this placeholder image.
Updated on: 23/06/2023
Thank you!