NeovaПродвинутая SEO-платформа

GIF больше 100 КБ

В Neova Работает по данным самого сканирования: ничего настраивать не нужно.

Правило последний раз проверено 17 октября 2026 г. · Руководство обновлено 7 июля 2026 г.

Lighthouse считает проблемой GIF больше 100 КиБ, потому что видеоформаты передают анимацию в гораздо меньших файлах. Статичный GIF такого размера тоже отмечается.

Что можно сделать

Преобразуйте анимированные GIF в видео MP4 или WebM, а статичные GIF в WebP или PNG.

Почему Neova это отмечает

  • Анимированные GIF гораздо больше той же анимации в видео MP4 или WebM, и страницы грузятся медленнее.
  • Lighthouse советует видеоформаты для анимации; порог 100 КБ здесь взят у Lighthouse.
  • Крупный статичный GIF обычно меньше в WebP или PNG.

Источники

Полное руководство

Эта часть пока на английском.

What This Check Flags

This audit fires when your page serves animated GIFs for moving content. The GIF format is ancient, it caps at 256 colors and can't compress motion the way real video codecs do, so a five-second clip that would be a 400 KB MP4 balloons into a 3 MB GIF. Those bloated bytes sit right on the critical path and drag down LCP whenever the GIF is above the fold.

The Real Example, and the Fix

Swap the <img> for a <video> that autoplays silently and loops, it behaves exactly like a GIF, at a fraction of the weight:

<!-- Heavy: animated GIF -->
<img src="https://example.com/demo.gif" alt="Product walkthrough">

<!-- Light: autoplaying, looping muted video -->
<video autoplay loop muted playsinline poster="/demo-poster.jpg"
       width="640" height="360">
  <source src="https://example.com/demo.webm" type="video/webm">
  <source src="https://example.com/demo.mp4"  type="video/mp4">
</video>

Four attributes carry the whole illusion. autoplay plus muted is the only combo browsers will auto-start (they block audio autoplay); loop restarts it like a GIF; and playsinline stops iOS from forcing fullscreen. The poster gives you a stable first frame, and setting width/height reserves space so you don't cause a layout shift.

Encode the files with ffmpeg. Offer WebM (smallest, VP9/AV1) with an MP4 fallback for maximum reach:

# GIF -> MP4 (H.264), yuv420p keeps it playable everywhere
ffmpeg -i demo.gif -movflags +faststart -pix_fmt yuv420p 
  -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" demo.mp4

# GIF -> WebM (VP9), usually the smallest of the three
ffmpeg -i demo.gif -c:v libvpx-vp9 -b:v 0 -crf 34 demo.webm

The Size Win, in Numbers

The savings are not marginal. For a typical short UI loop, moving off GIF routinely cuts 80–95% of the bytes:

Format Typical Size (5s, 640×360) Color Depth Autoplay-Loop Capable Browser Support
Animated GIF ~3 MB 256 colors Yes (native) Universal
MP4 (H.264) ~400 KB Full Yes (video tag) Universal
WebM (VP9) ~300 KB Full Yes (video tag) Very broad
WebM (AV1) ~220 KB Full Yes (video tag) Modern browsers

Even the safe H.264 MP4 fallback is roughly an eighth of the GIF. Serve WebM first, MP4 second, and every browser gets the smallest file it can decode.

Why GIF Is so Heavy in the First Place

It helps to know why the format loses so badly, because it explains why the fix is worth the effort. A GIF stores every frame as a full lossless image and compresses each one independently, it has no concept of "this frame is almost identical to the last one." Real video codecs (H.264, VP9, AV1) use inter-frame compression: they store one key frame, then only the pixels that changed in the frames after it. For a UI screencast or a product loop, where most of the screen sits still, that difference is enormous, the codec throws away nearly all the redundancy a GIF faithfully re-stores frame after frame. That is why a five-second clip drops from megabytes to kilobytes without any visible quality loss.

How to Detect It

  1. Lighthouse: the "Use video formats for animated content" opportunity under Performance lists each GIF and the estimated byte savings from converting it.
  2. curl -I: check the size and type of a suspect file, curl -I https://yoursite.com/demo.gif. A content-type: image/gif with a fat content-length (hundreds of KB or more) is a conversion candidate.
  3. DevTools Network panel: reload, filter by Img, and sort the Size column descending. Any .gif near the top of the list is costing you real transfer weight.

How to Fix It

  1. Find your animated GIFs (Lighthouse or a quick crawl will list them).
  2. Convert each to MP4 and WebM with ffmpeg, using +faststart so playback begins before the full file downloads.
  3. Replace the <img> with a <video autoplay loop muted playsinline> block, WebM source first, MP4 fallback second.
  4. Add a poster and explicit width/height to hold layout and avoid CLS.
  5. Re-run Lighthouse and confirm the opportunity clears.

This is one of the highest-leverage single fixes for a heavy page, see the Speed Up WordPress guide for delivering media efficiently and the Core Web Vitals overview for how the byte savings translate to LCP.

FAQ

Will Replacing GIFs With Video Hurt My SEO?

The opposite. Lighter media means faster LCP and less bandwidth wasted on every load, both good for page experience. Just keep decorative loops out of your video sitemap, that markup is for real content video, not UI animations.

Do I Need a Video Sitemap or VideoObject Schema for These?

No, not for silent decorative loops replacing GIFs. Schema and sitemaps are for substantive video content you want in search. If a clip is genuine content, the VideoObject schema guide covers the markup.

Why Won't My Video Autoplay on Mobile?

Almost always a missing attribute. Mobile browsers only autoplay when the video is both muted and marked playsinline. Without playsinline, iOS tries to go fullscreen and blocks the auto-start.

Should I Use MP4 or WebM?

Both. List WebM (VP9 or AV1) first for the smallest file, then MP4 (H.264) as the universal fallback. The browser picks the first source it can play, so you get maximum compression with zero compatibility risk.

What About Animated WebP or APNG Instead of Video?

Animated WebP beats GIF on size but still loses badly to real video codecs, and it can't stream progressively. For anything more than a tiny loop, <video> wins on both bytes and control.

Найдите это на своём сайте

Neova запускает эту проверку и все остальные при каждом сканировании, а затем оформляет исправление тикетом для вашей команды.

  • Приложение для Mac, Windows и Linux
  • Все 696 проверок, у каждой свой источник
  • Search Console и Analytics 4 подключаются только для чтения
  • Задачи в Jira, Linear и Asana

Скачать Neova Тариф Desktop Free или Solo бесплатно на 14 дней, без карты.

Все проверки категории «Изображения» · Руководства · Библиотека проверок

Автор: Neova Labs · Назад в Библиотеку проверок