Codementor Events

Website Speed: A Study

Published May 10, 2018
Website Speed: A Study

Every time I’ve worked on improving website performance, I’ve wanted to share the numbers with everyone to show just how big a difference even simple measures can make. But I always forgot to keep records while making adjustments.

“Next time, I’ll take those screenshots…”

The Experiment

Well, this time I did. I recently created a quick single-page static website for a client. Once I had the page ready, I turned to improving performance. My workflow for this relies heavily on the Audit feature in Chrome’s dev tools, which generates a very nice report with graphs (it simulates page load on a smartphone on a 3G network).

I compare the performance values with those from a previous step to gauge the effectiveness of each tweak I make. This time I took screenshots of the best results at each stage:

Screenshots of the audit performance results at each stage of optimization of a websiteScreenshots of the audit performance results

But there was a problem. The graphs in these reports are not all on the same scale. This means that though the first-paint time went down from 2.9s to 0.7s (down by 1/4th), the graph went down only by 2/5th. The actual full-paint times are not even listed. They have to be determined from screenshots. So of course I went and made some graphs of my own 🙂.

Results

This would be the time when I remind everyone about my previous post on website performance. It discusses in detail the optimizations talked about in this post, as well as other WordPress-specific ones:
Faster WordPress Websites

So anyhow, here’s the first graph demonstrating the change in first-paint times and perf scores after each optimization step.
Graph illustrating performance improvement at each optimization step. Time to first meaningful paint came down from 2.91s to 0.68s, a 328% improvement! The audit score in Chrome's dev tools went up from 83 to 99.Graph illustrating performance improvement at each optimization step. Time to first meaningful paint came down from 2.91s to 0.68s, a 328% improvement! The audit score in Chrome's dev tools went up from 83 to 99.

As you can see, first-paint times went down by a whopping 77%. And these are just the first-paint numbers.

A graph showing how indicators of perceived speed changed with each optimization step. Perceptual load time went down from ~4.8s to 0.68s. Perceptual speed index scores went up from 74 to 98.Perceptual load times—how fast it feels like a website loaded—were even more impressive, showing a total improvement of 606%, down from ~4.8s to 0.68s. Perceptual speed index scores went up from 74 to 98.

I had to deduce the fully loaded perceptual scores from the screenshots. This is the stage at which the site no longer appears to change. The load times here went down by 86%.

Analysis

So what did I learn from this experiment?

Even a simple single-page, static, bare-bones website can benefit from these simple performance improvement measures. And massively so. It had less than 500 words and just one image (a banner). Yet it would have taken four seconds to load on 3G. This was brought down to less than a second.

Also, the biggest jumps in performance seem to be CSS-related: cleanup of bootstrap.css and animate.css, critical CSS separation, concatenation and minification, inlining critical CSS, and making linked CSS non-blocking. This is probably because the website didn’t have many interactive elements (JS) or images. A more interactive website would have seen even bigger performance gains. Similarly, if this had been a WordPress website, we’d have seen greater relative improvement between what was available out of the box and the result after implementing these changes.

Conclusion

What Google says is the new good load time over 3G, is three seconds.

The average time it takes to fully load a mobile landing page is 22 seconds, according to a new analysis. Yet 53% of mobile site visitors leave a page that takes longer than three seconds to load.
— from this report by Google.

You get SEO points for being fast. A simple, single-page, static website clocks in at four seconds if you don’t take the steps to make it fly. Performance tuning is essential.

Credits

Banner image modified froma a photo by Joshua Hoehne on Unsplash

Original Post

First published on my blog as Website Speed: A Study

Discover and read more posts from Manjit Karve
get started
post commentsBe the first to share your opinion
Show more replies