Smashing Magazine - #489: Web Performance

Instant navigation, Web Almanac 2024, INP debugging, font-face fallbacks and compression dictionaries. Issue #489 Jan 7, 2025 View in the browser

Smashing Newsletter

Hello Smashing Friends,

Web performance never loses its significance. So, we thought we’d start off the year 2025 by looking into some of the new techniques, tools, features, and resources that you might find helpful to boost your web performance this year, from speculation rules to compression dictionaries to breaking up long tasks and debugging INP.

New Front-End Adventures in 2025
Meet New Adventures In Front-End In 2025, an upcoming workshop with yours truly.

If you’d like to dive deeper into the state of front-end in 2025, take a look at New Front-End Adventures in 2025 which will go into all the fine details of web performance, accessibility, CSS, JavaScript tooling, and design systems. Kicking off on January 27 with yours truly.

We also have a few more friendly online workshops and in-person conferences coming this year:

We all sincerely wish you a wonderful start to the year and a fantastic 2025, full of positive surprises, enthusiasm, and optimistic energy — all the best to you and your loved ones! ❤️

Vitaly


1. Web Almanac 2024

Looking back, what was the state of the web in 2024? The Web Almanac combines the raw stats and trends of the HTTP Archive with the expertise of the web community. The results are backed up by accurate data taken from 86 people who have volunteered countless hours in the planning, research, writing, and production phases.

Web Almanac 2024

With 16.9M websites tested, the 2024 edition is comprised of 19 chapters spanning aspects of page content, UX, publishing, and distribution. An insightful look into the state of performance is included, too. A massive Thank You to all of the contributors for their time and dedication! (il)


2. Instant Navigation

When a page loads for the first time, its perceived performance is directly impacted by server response time, network latency, and blocking resources. However, it changes for subsequent visits and page views — and we can achieve almost instant navigation (+ video) by using speculation rules and supporting back/forward cache.

Instant Navigation

We can use Harry Roberts’ layered approach for Speculation Rules API (currently supported in Chrome, Edge and Opera) to prefetch and prerender pages, scripts or images way ahead of time depending on the defined data-attributes — and hence reduce LCP and TTFB costs dramatically. We can choose to opt in or out from eager prefetching as well. You can debug speculative rules as well.

And rather than reloading a previous page when the user navigates back, we can prompt a browser to instead rely on Back/Forward cache, so it can be restored instantly. Bring both techniques together, and you shouldn’t be surprised how much faster a page will be perceived by users — instantly! (vf)


From our sponsor

Elevate Your Projects With Hostinger VPS

Hostinger
Need reliable, high-performance hosting? Hostinger VPS offers dedicated resources, full control, and scalability for growing websites and apps. Starting at $4.99/month, you get root access and powerful tools to customize your server. The perfect solution for developers ready to scale. Explore VPS Plans now!


3. Getting Real Small With Compression Dictionaries

Isn’t it strange that every time we change our CSS, JavaScript, fonts, or anything else, users have to download entire files over and over again — even though the changes might have been very small and almost negligible? Wouldn’t it be better to send just a delta between the two files over the wire?

Compression Dictionaries

Well, compression dictionaries do just that today. As Patrick Meenan explains, it’s a relatively new HTTP feature that allows for the improvement of the compression of HTTP responses with 60-90% improvements in size.

It works by using existing HTTP responses as dictionaries to compress future requests and then send delta updates to the user. A website owner configures a dictionary. The server then compresses responses using it and sends them over to the browser.

The browser then stores it, and when a website is visited again, a server sends a shortened version using references to the stored dictionary. Finally, the browser “translates” that shorthand back to full content. Done! Can we use it today? We sure can; it’s currently available since Chrome 130. (vf)


4. Upcoming Workshops and Conferences

That’s right! We run online workshops on frontend and design, be it accessibility, performance, or design patterns. In fact, we have a couple of workshops coming up soon, and we thought that, you know, you might want to join in as well.

Smashing Online Events
With online workshops, we aim to give you the same experience and access to experts as in an in-person workshop from wherever you are.

As always, here’s a quick overview:


5. Breaking Down Long Tasks

Many performance challenges come from heavy and bulky JavaScript in our applications. We all have heard about breaking down long tasks — tasks that last longer than 50ms and block the main thread, but how do we do that exactly?

Breaking Up With Long Tasks

In his article on Breaking Up With Long Tasks, Rick Viscomi goes into all the fine details on how to group loops, yield within loops using scheduler.yield(), implement batching and use for..of loops instead of forEach or map for asynchronous processing. A detailed deep-dive to break down long tasks and boost performance! (vf)


6. New Performance Features In DevTools

When we need to debug performance issues, we often turn our attention to DevTools to find bottlenecks and understand where issues are coming from. (Chrome DevTools is one of those tools that is very often used.) In a recent article, Umar Hansa highlights some of the new performance features in Chrome DevTools.

New Performance Features In DevTools

The new Performance Panel shows lab and field data for Core Web Vitals but also has a detailed breakdown for loading phases (e.g., LCP Requests Discovery for LCP). You can navigate directly to DOM tree nodes for the LCP and INP target elements. The article has a video showing how to use these and other features and track down bottlenecks faster.

And if you’re looking for more DevTools tips, Patrick Brosset has got you covered with DevToolsTips.org — a rich repository of DevTools for all browsers, neatly organized and regularly maintained. (vf)


From our friends

Open Web Docs
Open Web Docs is a community of web developers, standards makers, and technology companies that considers web platform documentation to be critical digital infrastructure. To ensure its long-term health, we work together on creating and maintaining documentation and compatibility data on MDN Web Docs, caniuse.com, Baseline, and other projects. Sponsor OWD on GitHub to support our work!


7. Recently Published Books 📚

Promoting best practices and providing you with practical tips to master your daily coding and design challenges has always been at the core of everything we do at Smashing.

In the past few years, we were very lucky to have worked together with some talented, caring people from the web community to publish their wealth of experience as printed books. Have you checked them out already?

Success At Scale
Meet our newest book: Success At Scale by Addy Osmani. Get the book or browse the complete library.


8. Recent Smashing Articles


That’s All, Folks!

Thank you so much for reading and for your support in helping us keep the web dev and design community strong with our newsletter. See you next time!


This newsletter issue was written and edited by Vitaly Friedman (vf) and Iris Lješnjanin (il).


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You
rock.

Follow us on Twitter Join us on Facebook

unsubscribe update preferences view in your browser

Older messages

#488: Fun And Useful Gems

Tuesday, December 24, 2024

Radio garden, Zoom backgrounds, visual history of the alphabet and fun interactive experiences. Issue #488 • Dec 24, 2024 • View in the browser Smashing Newsletter Hello Smashing Friends, As we are

#487: Useful Templates And Canvases For Designers

Thursday, December 19, 2024

With new ways of working, facilitation techniques, guides to design interviews, culture design and user task canvas templates. Issue #487 • Dec 17, 2024 • View in the browser Smashing Newsletter

#486: Advanced Design Systems

Tuesday, December 10, 2024

Complex design systems, Figma organization, multi-brand systems, governance. Issue #486 • Dec 10, 2024 • View in the browser Smashing Newsletter Ho, ho, ho Smashing Friends, The challenges we have

#485: UX Research

Tuesday, December 3, 2024

How to measure UX impact, research templates, UX research field guide and research methods. Issue #485 • Dec 3, 2024 • View in the browser Smashing Newsletter Jó estét Smashing Friends, In many

#484: Web Forms

Tuesday, November 26, 2024

Live validation UX, form design layout and interaction, placeholders, segmented controls, names, required and optional fields, measuring forms UX. Issue #484 • Nov 26, 2024 • View in the browser

You Might Also Like

🐺 How to create a high impact press page.

Friday, February 14, 2025

͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏

#494: UX and Product Design

Friday, February 14, 2025

Redesigning complex navigation, product design process, UX in legacy systems, UX workshops with users. Issue #494 • Feb 11, 2025 • View in the browser Smashing Newsletter Halò Smashing Friends, How do

Nick Mafi on Capturing LA’s Loss

Friday, February 14, 2025

View in your browser | Update your preferences ADPro 77 Stories Shared As we watched the worst fires in Los Angeles history spread across the city, the editors at AD came together to discuss the

🐺 Content that Converts - the replay is up!

Friday, February 14, 2025

And everyone who joined loved it! ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌

Designer or Couple’s Therapist?

Friday, February 14, 2025

View in your browser | Update your preferences ADPro Let's Make a Deal There's no shortage of spoils in the wonderfully eclectic Hudson Valley home of actor Walton Goggins and writer-director

178 / Visualize your dreams in 2025

Wednesday, January 15, 2025

Product Disrupt Logo Product Disrupt Half-Monthly Jan 2025 • Part 1 View in browser Welcome to Issue 178 Ever get curious about how this newsletter is doing? I shared the 2024 behind-the-scenes and

Mayer Rus on Loss, and Living, in LA

Tuesday, January 14, 2025

View in your browser | Update your preferences ADPro LA, I Love You Los Angeles has been my home for nearly 20 years, and the devastation here, now, is unfathomable. Entire neighborhoods have been

🐺 How to make a great first impression

Tuesday, January 14, 2025

With real examples. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

#490: Interface Design

Tuesday, January 14, 2025

How to design better interfaces, how to choose icons, optical effects, iconography, Gestalt principles and icon design. Issue #490 • Jan 14, 2025 • View in the browser Smashing Newsletter Buona

🐺LAST CHANCE to get 20%-off our PR Masterclass Series

Monday, January 13, 2025

Make 2025 your biggest press year yet. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏