Search this site

Web Performance

Web performance is my favourite topic and these articles should give you a flavour of the different tools & tricks that I've been experimenting with. If you'd like to learn more about web performance, please check out the articles below.

19 March 2019

Experimenting with the Streams API

Process NDJSON with the Streams API and render results as they arrive, rather than making users wait for a large download to finish.

30 April 2018

Progressive Web Apps - Book Giveaway

"Progressive Web Apps" has recently been released, and if you haven't already gotten your hands on a copy, I have 5 free copies to give away to lucky readers.

Service Workers can save the environment!

24 April 2018

Service Workers can save the environment!

Service workers allow you to cache resources on the user's device when they visit your site for the first time. Fewer HTTP requests mean less CPU usage and less energy consumed.

5 December 2017

Guest Posts and Advent Calendars

My 2017 guest articles cover progressive image loading with Intersection Observer and SQIP, plus a practical learning path for junior web developers.

30 March 2017

Experimenting with the Server Timing API

Expose backend performance measurements through Server Timing response headers, so you can inspect routing and database timings alongside frontend load times.

6 September 2016

Image Beast - My 10 K Apart Entry

Meet Image Beast, my 2016 10 K Apart entry: a tiny service worker helper for serving alternative image formats, saving data and caching images.

22 July 2015

Faster Mobile Websites - Slides

Watch my UpFront 2015 talk and browse the slides for mobile performance techniques, including critical rendering, responsive images and profiling tools.

1 June 2015

Improved Compression Ratios Using Zopfli

Compress static assets with Zopfli through a Grunt task. Get smaller Gzip files before deployment without paying the cost of slower encoding on each request.

22 April 2015

I'll be speaking at UpFront Conference

I’m proud to say that I will be speaking at UpFront Conference in Manchester, UK on the 19th of May. UpFront Conference is in it’s first year and is billed as “a front-end conference for anyone who makes for the web”. The speaker line-up is packed

21 October 2014

Getting started with the Picture element

Use the HTML picture element and srcset to serve images that suit the viewport, avoiding desktop-sized downloads on mobile and handling older browsers.

12 September 2014

HTTP vs HTTPS performance comparison

My 2014 comparison of HTTP and HTTPS page loads explores TLS handshake overhead and practical ways to measure and reduce the cost of encrypted connections.

3 July 2014

Loading CSS Asynchronously

My experiment with Filament Group's loadCSS shows how asynchronous stylesheets avoid blocking rendering, along with the flash of unstyled content tradeoff.

20 November 2013

Velocity Conference Europe 2013 is a wrap!

Highlights from Velocity Europe 2013, including our image optimisation talk, Addy Osmani's unused CSS tools and Paul Lewis's rendering performance advice.

1 November 2013

I'll be speaking at Velocity Europe 2013

My announcement for Velocity Europe 2013, where Robin Osborne and I planned to share image optimisation techniques for smaller, faster-loading pages.

4 October 2013

A Simple HTML Minifier for ASP.NET

The original ASP.NET HTML Minifier walkthrough shows how to minify files during Visual Studio 2012 publishing, avoiding per-request processing overhead.

22 January 2013

Frontend Single Point of Failure

A single point of failure is a part of a system that, if it fails, will stop the entire system from working. Let's look at a tool called SPOF-o-matic.

10 August 2012

Net Magazine Article

An announcement of my article in Net Magazine's September 2012 issue, explaining how content delivery networks can help improve page load times.

11 July 2012

Lazy Loading Social Sharing Buttons

A 2012 Socialite.js and jQuery example defers social sharing widgets until they scroll into view, keeping third-party buttons out of the initial page load.

31 May 2012

HTML5 Asynchronous JavaScript

Compare async and defer script loading, see how execution order affects jQuery dependencies, and use browser waterfalls to inspect the performance difference.

26 September 2011

Memcached for C# - A Walkthrough

A C# Memcached walkthrough for sharing cached objects across applications and keeping them outside the IIS app pool, with setup and client examples.

8 July 2011

MVC and the HTML5 Application Cache

A 2011 ASP.NET MVC experiment with HTML5 Application Cache, showing dynamic manifests, offline resources and the pitfalls of caching server-rendered pages.

6 October 2010

Object Caching - .NET 4

Store and retrieve objects with .NET 4's MemoryCache, using a small reusable wrapper to avoid repeated database calls and handle cache misses.

1 June 2010

Lazy loading images with jQuery

A jQuery Lazy Loader example delays images on long pages until they're in view, using a placeholder so readers don't download everything upfront.

16 December 2009

Dot Less and Minifying CSS

Use dotless to add variables, nested rules and mixins to CSS in a .NET app, then automate stylesheet minification with a Visual Studio T4 template.