Maximally optimizing image loading for the web in 2021

By industrialempathy - 2021-02-19

Description

In this post I'll outline 8 image loading optimization techniques to minimize both the bandwidth used for loading images on the web and the...

Summary

  • In this post I'll outline 8 image loading optimization techniques to minimize both the bandwidth used for loading images on the web and the CPU usage for image display.
  • New in 2020 is that web browsers will reserve the correct vertical space for the image before it loads if the width and height attributes are provided for the img element.
  • This has all kinds of benefits, but the most important one might be that the browser will not bother decoding our blurry placeholder image or the image itself unless it has to, saving CPU.
  • immutable is the semantically correct cache-control value, but unfortunately it isn't widely supported in browsers (I'm looking at you, Chrome).

 

Topics

  1. UX (0.32)
  2. Frontend (0.24)
  3. Backend (0.1)

Similar Articles

Targeted adversarial attacks with Keras and TensorFlow

By PyImageSearch - 2020-10-26

In this tutorial, you will learn how to perform targeted adversarial attacks and construct targeted adversarial images using Keras, TensorFlow, and Deep Learning. Last week’s tutorial covered untarget ...

A Beginner’s Guide to the CLIP Model

By KDnuggets - 2021-03-11

CLIP is a bridge between computer vision and natural language processing. I'm here to break CLIP down for you in an accessible and fun read! In this post, I'll cover what CLIP is, how CLIP works, and ...