Skip to Content
Responsive & Fast
book

Responsive & Fast

by Guy Podjarny
August 2014
Intermediate to advanced
58 pages
1h 13m
English
O'Reilly Media, Inc.
Content preview from Responsive & Fast

Chapter 3. Image Over-Downloading

On an average website, the vast majority of bytes are image bytes. Regardless of responsiveness, images account for over 60% of an average page’s bytes, and over half of its requests, far more than any other type of resource. This stat is true on mdot sites as well, with images accounting for roughly 57% of bytes on average (see Figure 3-1).

However, when comparing desktop and mobile, we see a different picture. An average mdot site requires less than half the image bytes of its desktop counterpart. This is an easy stat to fathom, since mobile screens are smaller, resulting in fewer and tinier images.

This reduced visual holds true for responsive websites as well. When the screen is smaller, there are often fewer images displayed, and those images that remain are smaller. However, in responsive websites we do not see the ensuing reduction in bytes. In fact, the average responsive website uses roughly the same amount of image bytes, regardless of screen size.

This statistic, along with the large slice that images take of a page’s weight, makes them a good place to start our over-downloading analysis. Looking across many responsive sites, we can see two recurring image-related performance issues in RWD implementations: “Download and Hide” and “Download and Shrink.”

Bytes Per Page by Content Type
Figure 3-1. Distribution of bytes on an average page, per the HTTP Archive

Problem: Download ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

High Performance Images

High Performance Images

Colin Bendell, Tim Kadlec, Yoav Weiss, Guy Podjarny, Nick Doyle, Mike McCall
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally

Publisher Resources

ISBN: 9781491912935Errata