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, 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.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.