Web Performance talk in Stockholm - Internet Days
José M. Pérez / November 23, 2015
5 min read • 198 views
Today I have had the chance of attending the "Faster than lightning track" of Internetdagarna 2015. There have been talks about web performance, and some broader topics like big data and UI, how data is important for large companies offering free services, and the need for public Governments to build compelling competitive services. The videos are already online.
The Heart logo at Internetdagarna 2015
Internetdagarna
A couple of weeks ago I attended Monitoring web performance using Open Source tools and AMP by the Stockholm Web Performance Group. I was lucky and got a ticket at a raffle where they gave out a couple of tickets to Internetdagarna.
I have only attended the first of the two days of the conference. It has been very well organized, and the quality of the talks very high. Well, I pretty much every talk about web performance :) Also, I love their 8-bit theme and the looping animations with the logo.
Main room at Internetdagarna 2015
Talks
High Performance Images, by Tobias Baldauf
Great talk! If you care about images, their size and format, please watch this. Instead of just explaining the typical tips about resizing and optimising images, Tobias focuses on formats and compression.
He goes through the history of formats, and the multiple formats that have tried to replace JPEG (WebP and JPEG-XR). Then, he goes back to JPEG demoing mozjpeg as an enhancement for encoding JPEGs. The question is "what quality to use?"
The answer is measuring image dissimilarity, to find out how much different is the compressed version compared to the original one. Good news: there is a tool for that, called dssim. Then, one can run a script that compresses an image with different values until it reaches a certain dissimilarity threshold, like Tobias' cjpeg-dssim.
Tobias goes beyond this, and explains his Adept script, based on the idea of using different compression levels for different areas of the image, aka adaptive JPEG compression. The script takes a long time, but it can be worth it for doing one-shot optimisations for important assets like a hero image.
Tobias Baldauf about to talk about mozjpeg
Cheat Sheet To A Lean Website, by Barbara Bermes
Barbara talks about performance culture, and the need to feel empowered and encouraged to say "no" when implementing features or designs that affect performance.
This is something I have been hearing lately, especially around the ad-blocker and bloated sites topic. I wish all developers could feel free to discuss decisions that affect user's experience.
And when it comes to performance culture, it's almost impossible not to mention Etsy.
Barbara then goes through some good ideas, like having a performance budget, or defining mockups of the important areas that need to be rendered quickly, being aware of the critical rendering path, and the rest of Steve Souders's principles.
Barbara Bermes talking about performance culture
The Case for HTTP/2, by Andy Davies
Andy explains the history of HTTP 1.1, its limitations and the workarounds we came up with to overcome its limitations. I find particularly interesting how inlining critical CSS in the HTML or inlining images in CSS using data URIs means that we are overriding browser's priorities, based on heuristics to determine what resources should be downloaded first. I had never thought about it from this perspective.
But Andy doesn't try to just sell HTTP/2. He explains HTTP/2 through some real examples applied to real sites. In some cases there is almost no improvement in loading time, and it is still difficult to implement a server push approach that takes into account whether the browser already has the filed being pushed. He also shows some issues in some server implementations that developers need to be aware of.
Andy Davies showing how to debug HTTP/2 connections with Chrome tools
Working with performance, by Tobias Järlund
Tobias explains how Aftonbladet.se, the main news site in Sweden, approaches web performance, and what problems they have faced when trying to make everyone aware of the performance implications of the content (ads, large images...).
Tobias Järlund talking about blocking 3rd party content. I personally don't like the quote depicted in that slide, since I think Aftonbladet's most important content should be, of course, news.
No video available yet
Baking in Performance with Agile, by Meri Williams
Meri goes through some ideas to implement performance culture within teams. Also, she encourages everyone to similar devices and network connections to those from real users browsing our site. This can also help out when taking into account performance in other teams within the company.
Meri Williams about unexpected events that can affect your traffic.
No video available yet