Video is one of the most effective ways to explain a product, introduce your team or teach a technique. A two-minute video can do what a thousand words struggle to. It’s no surprise that clients often ask me to add video to their homepage, service pages and blog posts.
But video is also one of the easiest ways to slow a website down. I’ve audited homepages where a single embedded video player added well over a megabyte of scripts before anyone pressed play, background videos that downloaded tens of megabytes on mobile connections and self-hosted video files that brought shared hosting to its knees.
You can have video and a fast site. It just takes a few deliberate choices. Here’s how I add video to WordPress without the slowdown.
Choose where your video is hosted
The first decision is where your video files live.
Video platforms
Uploading to a video platform and embedding it on your site is the most common approach. Platforms handle encoding, adaptive streaming, global delivery and playback across devices. Some are free and supported by advertising and recommendations; others are paid and designed for businesses, with more control over branding and privacy.
Benefits:
- Adaptive streaming adjusts quality to each viewer’s connection.
- No load on your own server for video delivery.
- Reliable playback on all devices.
Downsides:
- Embedded players load significant scripts.
- Free platforms may show recommendations for other videos or advertising, and set tracking cookies.
- Less control over the player and data.
Self-hosting on your server
Uploading video files to your WordPress media library and playing them with the HTML video element gives you full control, with no third-party scripts. But:
- Video files are large, consuming storage and bandwidth.
- Without adaptive streaming, viewers on slow connections may buffer, and viewers on fast connections may get lower quality than they could.
- Many simultaneous viewers can strain your server.
Self-hosting works for short clips, like small product demonstrations or silent background loops. For longer content, use a video platform or a dedicated video streaming service.
Dedicated video streaming services
Some services offer video hosting with adaptive streaming, privacy controls and lightweight players, designed for businesses and course creators. They’re a good middle ground: professional delivery without the advertising and recommendations of free platforms, and often with better privacy defaults.
The real cost of embeds
When you paste a standard video link into WordPress, it creates an embed that loads the platform’s full player on page load: iframes, multiple scripts, stylesheets and tracking. It happens whether or not anyone watches the video.
For a page with one video, the impact is noticeable. For a page with several, it can be dramatic, slowing load times and hurting Core Web Vitals, particularly on mobile.
Use a facade: load the player only when needed
The most effective technique for embedded video is a facade. Instead of loading the full player immediately, you show a lightweight preview, usually the video’s thumbnail with a play button. The real player only loads when the visitor clicks.
The visitor experience is almost identical, but the page loads far faster, because the heavy player only loads for people who actually want to watch.
You can implement facades with:
- Lightweight embed plugins that replace standard embeds with facades automatically.
- Performance plugins that include a “lazy load video” or facade option.
- Custom code in your theme, for full control.
When implementing facades, make sure:
- The thumbnail is optimised and appropriately sized.
- The play button is accessible, with a clear label like “Play video: How we clean hacked sites”.
- Keyboard users can activate the play button.
- The video starts playing after one click, without requiring a second.
Lazy load iframes
If you don’t use a facade, at least lazy load video iframes that appear below the fold, so they only load when the visitor scrolls near them. Modern browsers support native lazy loading for iframes:
WordPress adds loading=”lazy” to iframes in post content automatically in many cases. Check that videos at the very top of the page aren’t lazy loaded if they’re the main content, but remember that a facade is still better for performance.
Use privacy-friendly embed options
Some video platforms offer a privacy-enhanced embed mode that doesn’t set tracking cookies until the visitor plays the video. Using these options, combined with a facade, helps with both performance and privacy compliance.
Depending on where your visitors are, embedded players that set tracking cookies may require consent. A facade can double as a consent prompt: the player only loads when the visitor chooses to watch.
Background videos: use with caution
Autoplaying background videos in hero sections are visually striking but have real costs:
- They’re often several megabytes, downloaded by every visitor.
- They can delay the main content from appearing, hurting Largest Contentful Paint.
- They drain mobile data and battery.
- Moving backgrounds can be distracting and cause problems for people with vestibular disorders.
If you use a background video:
- Keep it very short and heavily compressed, ideally a few seconds looped and well under a few megabytes.
- Remove the audio track entirely.
- Provide a poster image so something appears immediately.
- Consider showing only the poster image on mobile.
- Respect the prefers-reduced-motion setting, showing a static image to visitors who’ve asked for reduced motion.
- Provide a way to pause the video. WCAG requires a pause mechanism for moving content that lasts more than five seconds.
Often, a well-chosen static image converts just as well and loads in a fraction of the time.
Self-hosted video settings
If you do self-host short videos, use the video element sensibly:
- preload=”none” stops the browser downloading the video until the visitor presses play. preload=”metadata” downloads only basic information. Avoid preload=”auto” for most content.
- poster shows an image before playback.
- width and height reserve space and prevent layout shift.
- Compress video properly, using a modern codec at a sensible resolution and bitrate. A product demo rarely needs to be 4K.
- Use MP4 with H.264 for broad compatibility, optionally offering more efficient formats as additional sources.
For larger video libraries, offload storage and delivery to a CDN or streaming service rather than your web server.
Prevent layout shift
Embedded videos without dimensions can cause content to jump as they load. Give video containers a fixed aspect ratio:
WordPress’s embed block includes responsive embed styles when your theme supports them, which many themes do.
Make videos accessible
Accessible video benefits everyone:
- Captions for all videos with speech. Many people watch without sound, and captions are essential for deaf and hard of hearing viewers. Auto-generated captions are a start, but review them for accuracy.
- Transcripts provide a text alternative, help people who prefer reading and add indexable content to the page.
- Audio descriptions or descriptive narration for important visual information that isn’t spoken.
- Accessible player controls that work with keyboards and screen readers.
- No autoplay with sound.
Video and SEO
Video can support SEO when used well:
- Place videos on relevant pages with supporting text, rather than on pages with nothing else.
- Write descriptive titles and surrounding content.
- Include transcripts, which add text search engines can read.
- Use VideoObject structured data, which some SEO plugins add automatically for embedded videos, so search engines understand the video’s title, description, thumbnail and duration.
- Make sure the video thumbnail is high quality and representative.
Testing
After adding video:
- Run speed tests on the page and compare with the page without the video.
- Check Core Web Vitals, especially Largest Contentful Paint and Total Blocking Time in lab tests.
- Test on a real phone over mobile data.
- Check captions, keyboard controls and screen reader labels.
- Check that consent settings are respected, if applicable.
Frequently asked questions
Should I upload videos to my WordPress media library?
Only short clips. For longer content, use a video platform or streaming service to avoid bandwidth, storage and playback problems.
Do embedded videos slow down my site?
Standard embeds load heavy scripts even if nobody plays the video. Using a facade or lazy loading reduces the impact dramatically.
Are background videos bad for performance?
They often are, especially on mobile. Keep them short and compressed, provide poster images, respect reduced motion preferences and consider using static images instead.
Do I need captions on my videos?
For accessibility, yes, for any video with speech. Captions also help people watching without sound and can support SEO when combined with transcripts.
Final thoughts
Video and performance can coexist. Host longer videos on a platform or streaming service, load players only when visitors want them using facades, lazy load anything below the fold, be careful with background videos, set sensible attributes for self-hosted clips and prevent layout shift. Add captions and transcripts for accessibility and SEO. Your pages stay fast, and your videos still do their job.




