Medhat Dawoud
Blazing Fast Page Navigation with Speculation Rules
#1about 3 minutes
Why speculation rules make cheaper phones feel faster
Speculation rules pre-load content to create a faster navigation experience, even on less powerful hardware.
#2about 1 minute
Understanding the traditional page loading process
Traditional page navigation involves a slow, sequential process of requesting HTML, parsing it, and then fetching assets for each page.
#3about 3 minutes
Leveraging human reaction time for faster navigation
The significant delay between a user deciding to click and the actual click event provides a window to pre-load resources.
#4about 4 minutes
Achieving instant navigation with speculative loading
Speculation rules aim to eliminate loading time by pre-rendering pages in a hidden background tab before the user clicks.
#5about 4 minutes
Writing speculation rules with action, target, and eagerness
Define speculation rules using a JSON structure with actions like prefetch or pre-render, targets like URLs, and eagerness levels like moderate or immediate.
#6about 1 minute
Measuring the impact on Largest Contentful Paint (LCP)
The effectiveness of speculation rules is measured by the improvement in the Largest Contentful Paint (LCP) metric from Core Web Vitals.
#7about 9 minutes
Live demo of implementing and debugging speculation rules
A practical demonstration shows how to use Chrome DevTools to inspect speculation rules, view pre-rendered pages, and measure the dramatic LCP improvement.
#8about 1 minute
Understanding browser support and progressive enhancement
Speculation rules are currently supported in Chromium-based browsers, making them a progressive enhancement for a majority of users.
#9about 4 minutes
Limitations and best practices for pre-rendering
Avoid pre-rendering URLs that trigger state changes like signing out, adding to a cart, or tracking events to prevent unintended side effects.
#10about 4 minutes
Mitigating resource waste with dictionary compression
Address the downside of wasted resources from unused pre-renders by using dictionary compression to significantly reduce the bandwidth of fetched pages.
#11about 1 minute
Actionable steps to implement speculation rules today
Start by testing speculation rules with a simple script, consider enabling dictionary compression, and continue optimizing the initial page load for all users.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
Technoly GmbH
Berlin, Germany
Senior
JavaScript
Angular
+1
Matching moments
08:32 MIN
Navigating web complexity and performance budgets
What you need to know about Core Web Vitals
06:46 MIN
Exploring new browser APIs in Interop 2025
New Browser APIs, End of React Create App, Smuggling Data in Emoji and more with Rowdy Rabouw
01:28 MIN
Improving navigation speed with prefetching and preloading
Challenges of building React and React Native apps
02:54 MIN
Enhancing runtime performance with CSS and UX
The Illusion of a Performant Web Application
01:57 MIN
A call to challenge your web performance assumptions
Uncharted Territories of Web Performance - Andrew Burnett-Thompson and David Burleigh
01:01 MIN
Conclusion and key performance takeaways
The Illusion of a Performant Web Application
03:06 MIN
Summary of the intelligent prefetching technique
Build UIs that learn - Discover the powerful combination of UI and AI
06:13 MIN
Navigating the complexity of performance debugging tools
WeAreDevelopers LIVE - Rendering in the Browser, The State of CSS and Accessibility and more
Featured Partners
Related Videos
Catching up on the basics you don't really need that much code
Chris Heilmann
Explore new web features before everyone else
Nikita Dubko
The Journey of a Pixel in a React Application
Shem Magnezi
The Illusion of a Performant Web Application
Cathrin Möller
The Lean Web
Chris Ferdinandi
What’s New and What’s Next in Web UI
Cleyra Uzcategui
Optimistic UI Updates: Enhancing User Experience and Improving Interaction to Next Paint (INP)
Marc Müller
Next.js Unleashed: Optimizing Web Vitals for superior User Experience
Eileen Fürstenau
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

&why GmbH
Berlin, Germany
€50-70K
Junior
Intermediate
Senior
React
Next.js
TypeScript

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript

PiNCAMP GmbH
Berlin, Germany
Senior
React
GraphQL
Next.js



Dr. Meyer & Meyer-Peteaux New Media Company GmbH & Co. KG
Rastede, Germany
API
CSS
GIT
SASS
Scrum
+7

Spektrum
Braine-l'Alleud, Belgium
Remote
.NET
REST
Azure
Scrum
+10

