Скорость и безопасность

Image optimization: how to speed up your site without losing quality

The most common cause of a slow site is not the server or the code, but 5-megabyte photos uploaded straight from the camera. Simple image work speeds up pages several times over. Here is what exactly to do and in what order.

Monolith Studio editorial team2 min read

Why image weight matters so much

Images take up most of a page's weight. When a person on a phone waits for the main photo to load, they see a blank screen, and on mobile internet with an unstable connection it takes especially long. Search engines take speed into account, and visitors leave without waiting.

A photo from a modern phone is thousands of pixels on each side, but it is displayed on screen at a width of about 400-1200. The rest is excess weight that your visitor and your traffic pay for.

Image formats

WebP
A modern format with good compression, supported by all current browsers. The main choice for photos and graphics.
AVIF
Even smaller size at the same quality, but encoding takes longer. Suitable for large images when your build supports it.
JPEG
A universal option for photos if you need compatibility with older systems.
PNG
Needed only for images with transparency and sharp edges. Heavy for photos.
SVG
A vector format for logos and icons: it weighs little and stays sharp.

What to do with each image

  1. Pick the size

    Upload an image no wider than it is displayed, with a 2x margin for high-density screens.

  2. Compress

    Online services and build tools cut the weight several times over with almost no visible loss of quality.

  3. Choose the format

    WebP as the default, SVG for the logo and icons.

  4. Set dimensions in the code

    Width and height prevent the page from jumping while loading.

  5. Enable lazy loading

    Images below the first screen load when the visitor scrolls to them.

Common mistakes

  • The main photo on the first screen is lazy-loaded, although it should appear immediately
  • The same large file is used as a small thumbnail
  • A video background replaces a photo without need, yet weighs as much as dozens of images
  • Images have no alt text, which hurts accessibility and image search
  • Text is baked into images, and search engines do not read it
  • A ten-slide carousel loads all the images at once

We'll name the price and timeline before we start

Tell us about your project and we'll fix the price and timeline in the contract. No extra charges along the way.

Discuss your project

FAQ

How big should a full-screen image be?

For a home page, a width of 1600-2000 pixels and a weight of about 150-300 kilobytes in a modern format is usually enough.

Does compression reduce quality?

Moderate compression is invisible to the eye. Check the result on a real page, especially with product photos.

How do I automate this for a catalog?

Processing is set up on upload: the site creates versions of different sizes and formats on its own.

Didn't find your question? Message us and we'll reply within one business day.

Ask a question

Site speed

We'll speed up your site

We will check page weight, compress images, and tune loading so your site opens fast even on mobile internet.

Call+7 708 758 18 60Message usWhatsApp
CityAktobe · we work across all of Kazakhstan

Get a quote

We'll reply within 15 minutes with an approximate price.