Group
  • Performance

    Stop my video embeds from wrecking page load

    Replace heavy video embeds with facade previews that load the real player only on click.

    • Improve quality
    • Ship faster
    • Beginner
    • General

Free Prompt

My pages embed videos (product demos, tutorials, marketing videos) using the standard embed code from YouTube, Vimeo, or similar, and the pages are noticeably heavier because of it. Fix how my videos load: 1. Inventory every embedded video and where it sits on the page. Note that a standard iframe embed loads the provider's player JavaScript, tracking scripts, and multiple connections on page load, even for users who never press play. 2. For below-the-fold embeds, apply lazy loading (loading="lazy" on the iframe) as a baseline. 3. For a bigger win, implement a facade: render the video thumbnail with a play button (a static image, properly sized), and only inject the real iframe when the user clicks. Show me the pattern and implement it for each embed. 4. Make sure the facade is accessible: the fake play button must be a real button with an accessible name, keyboard operable, and activating it must move focus appropriately into the loaded player. 5. For self-hosted video, check the basics instead: is the file compressed for web delivery, is it streaming/range-request friendly, does it have a poster image, and is autoplay muted and only when in view (autoplaying video with sound is hostile and browsers will block it anyway). Don't remove autoplaying background video without flagging the design tradeoff to me; offer a lighter compressed version or a static image fallback for mobile and reduced-motion preferences. The deliverable is the updated embeds plus the page weight difference before and after.

What This Does / How This Helps

This replaces your standard video embeds with click-to-load facades and lazy loading, so the provider's heavy player only loads for users who actually press play. One YouTube embed can add a megabyte or more of JavaScript and a dozen connections to your page load, paid by every visitor including the 95% who never watch. On a landing page that exists to convert, that's a direct tax on your signup rate. The facade pattern keeps the visual exactly the same while deferring the entire cost to the moment of intent, and it's one of the highest payoff, lowest risk changes on a marketing page.

Want to skip doing this by hand?

Fortivibe audits your app for all of the areas these prompts cover (and more).

See What We Check

Related Prompts