Back to feed
Dev.to
Dev.to
7/7/2026
VidDefer defers WordPress video embeds to fix Core Web Vitals

VidDefer defers WordPress video embeds to fix Core Web Vitals

Original: Why I Stopped Trusting 'Just Embed the Video' and Built VidDefer Instead

Short summary

The author built VidDefer, a WordPress plugin that defers video player loading until user interaction to fix Core Web Vitals on video-heavy sites. Unoptimized embeds load hundreds of kilobytes of unused player code on page load, tanking performance on course platforms, real estate, and SaaS sites with multiple videos per page. VidDefer ships thumbnails initially and fetches players only on click, explicitly scoped to sites where video embeds are the actual bottleneck.

  • VidDefer defers player loading until interaction, shipping lightweight thumbnail images instead of full player code
  • Unoptimized video embeds load hundreds of kilobytes of unused player JavaScript on page load, harming Core Web Vitals scores
  • Plugin targets video-heavy sites (course platforms, real estate, SaaS) where videos are the performance problem, not a universal solution

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more