On this page
What this issue is
A GIF is an image format from 1987 that can hold several frames, so it can play as a short animation. It stores each frame with limited compression and only 256 colours. Modern video formats (MP4 with H.264, and WebM with VP9 or AV1) compress motion between frames, so they are much smaller for the same clip.
Why it costs you leads or sales
A heavy GIF competes with everything else on the page for bandwidth. On a mobile connection, the page can take longer to show its main content and become usable. Slow pages tend to lose more visitors before they reach your form or buy button. The business impact is usually low for one small GIF, but it grows when GIFs sit above the fold or you have several on a landing page.
Example: a 6-second product demo exported three ways. Real sizes vary by clip, but video is typically much smaller than GIF.
How to check if your site has it
Open browser dev tools
In Chrome, press F12 (or Cmd+Option+I on Mac) and open the Network tab. Reload the page.
Filter by image type
Click the Img filter, or type .gif in the filter box. Sort by Size to see the largest first.
Note file sizes
Any GIF over a few hundred KB is a candidate for replacement. Check whether it is animated by opening it in a new tab.
Run a page speed test
Google PageSpeed Insights and Lighthouse include an audit called 'Use video formats for animated content' that lists GIFs that should be videos.
Search your source
Search your theme, page builder or HTML for '.gif' to catch GIFs that load lower down or on other pages.
How to fix it
The fix has two parts: convert the GIF to video, then replace the <img> with a <video> tag that behaves like a GIF (autoplay, loop, muted, no controls).
Get the original source
If you still have the screen recording or video the GIF came from, use that. It gives the best quality.
Convert to MP4 and WebM
Use a video editor, an online converter or the free ffmpeg tool. Export MP4 as the main file and WebM as an optional smaller one.
Embed with a video tag
Use autoplay, muted, loop and playsinline. Browsers only autoplay video when it is muted. Add a poster image so something shows while it loads.
Set width and height
Give the video fixed dimensions or an aspect ratio so the layout does not jump while it loads.
Delete or stop loading the GIF
Remove the old GIF from the page so it is not downloaded as well.
ffmpeg -i demo.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" demo.mp4
ffmpeg -i demo.gif -c:v libvpx-vp9 -b:v 0 -crf 33 demo.webm<video autoplay muted loop playsinline width="640" height="360" poster="demo-poster.jpg" preload="metadata">
<source src="demo.webm" type="video/webm">
<source src="demo.mp4" type="video/mp4">
</video>Upload the MP4
Add it in Media > Add New. In the block editor, use the Video block and turn on Autoplay, Loop and Muted, and Playback controls off. Plays inline should be on.
Remove the GIF block
Delete the Image block that holds the GIF. Check page builders and theme sliders for other GIFs.
Upload the video
Go to Content > Files and upload the MP4. In the theme editor, use a Video section or block if your theme has one.
Use custom HTML if needed
If your theme has no autoplay-loop option, add a Custom Liquid or Custom HTML block with the video tag above, using the file URL from Content > Files.
Add a Video or Embed element
Use an Embed element and paste the video tag with the hosted file URL. Webflow's Background Video element also works for decorative loops and handles autoplay and muting.
Add a video
Upload the MP4 to the Media Manager and add it as a Video or video strip. Turn on autoplay, loop and mute in the video settings.
Use a Video block or Code block
Upload the MP4 in a Video block with Autoplay, Loop and Mute where available. Otherwise paste the video tag into a Code block using a hosted file URL.
Swap the img tag
Replace <img src="demo.gif"> with the video tag shown above and serve the files with correct MIME types (video/mp4, video/webm).
Animated GIF
- Large file for a short clip
- 256 colours, visible banding
- No controls, no pause
- Delays other content on slow connections
Muted looping video
- Much smaller file
- Full colour and smoother motion
- Can add poster image and controls
- Lighter on bandwidth
How to confirm it's fixed
- The Network tab no longer shows the .gif file loading on that page
- The video plays and loops automatically on desktop and on a phone (including iPhone Safari)
- The video does not make the layout jump while loading
- PageSpeed Insights no longer lists 'Use video formats for animated content'
- Total page weight is lower than before
How to prevent it happening again
- Ask designers and writers to export animations as MP4 or WebM, not GIF
- Add a size check to your publishing process: no animated asset over a set limit
- Re-run PageSpeed Insights after adding new landing page sections
- Check pages after theme or plugin updates, which can bring in new GIFs
How FunnelGuard handles this
This issue is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys, such as forms and checkouts, and checks steps, tracking hits and lead delivery. It does not audit file formats or page weight. For GIFs, use a page speed and performance testing tool such as Lighthouse, PageSpeed Insights or WebPageTest, or the Network tab in your browser.
Questions people ask
Why is my animated GIF so large?
GIF stores each frame with weak compression and does not efficiently encode motion between frames. A short clip can reach several MB, while the same clip as MP4 or WebM is often a fraction of that size.
How do I replace a GIF with a video on my website?
Convert the GIF to MP4 (and optionally WebM), then embed it with a video tag using autoplay, muted, loop and playsinline. Add a poster image and set width and height, then remove the old GIF from the page.
Will a video autoplay like a GIF?
Yes, if it is muted and has the playsinline attribute. Browsers block autoplay with sound, but muted looping video autoplays on desktop and mobile in current browsers.
Should I use MP4 or WebM instead of GIF?
MP4 with H.264 works almost everywhere, so use it as the main file. WebM is often smaller, so list it first and keep the MP4 as a fallback.
How do I find GIFs slowing down my page?
Open the Network tab in Chrome dev tools, reload the page, and filter for .gif sorted by size. You can also run PageSpeed Insights and look for the audit 'Use video formats for animated content'.
Does FunnelGuard detect GIFs on my pages?
No. This is outside what FunnelGuard checks. Use a page speed tool such as Lighthouse, PageSpeed Insights or WebPageTest to find GIFs and measure page weight.
Can I still use GIFs in emails?
Yes. Many email clients do not play video, so GIFs are still common in email. Keep them small, and use video on your web pages.
Related issues
- PRF-076Total page weight over 3 MB on a landing pageFix guide
- PRF-077Page weight jumped after a change (new unoptimised asset)Fix guide
- PRF-086Video embeds load full player instead of a facadeFix guide
- PRF-089Mobile visitors downloading desktop-size assetsFix guide
- PRF-083Third-party scripts make up over half the page weightFix guide
- PRF-078More than 150 requests on one pageFix guide