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.
Matching moments
50:27 MIN
Navigating web complexity and performance budgets
What you need to know about Core Web Vitals
06:07 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
12:13 MIN
Improving navigation speed with prefetching and preloading
Challenges of building React and React Native apps
28:37 MIN
Q&A on refactoring SPAs and page transitions
The Lean Web
20:25 MIN
Exploring future features and creative use cases
View-Transition-API: Gamechanger for hybrid app-development
19:10 MIN
Prefetching content using the Intersection Observer API
Offline first!
25:14 MIN
Q&A on SSR, caching, and accessibility
Reducing the carbon footprint of your website
20:59 MIN
Audience Q&A on performance, windowing, and tooling
Challenges of building React and React Native apps
Featured Partners
Related Videos
Explore new web features before everyone else
Nikita Dubko
The Journey of a Pixel in a React Application
Shem Magnezi
Catching up on the basics you don't really need that much code
Chris Heilmann
The Lean Web
Chris Ferdinandi
The Illusion of a Performant Web Application
Cathrin Möller
Uncharted Territories of Web Performance - Andrew Burnett-Thompson and David Burleigh
Andrew Burnett-Thompson & David Burleigh
Optimistic UI Updates: Enhancing User Experience and Improving Interaction to Next Paint (INP)
Marc Müller
Sleek, Swift, and Sustainable: Optimizations every web developer should consider
Andreas Taranetz
From learning to earning
Jobs that call for the skills explored in this talk.
![Senior Software Engineer [TypeScript] (Prisma Postgres)](https://wearedevelopers.imgix.net/company/283ba9dbbab3649de02b9b49e6284fd9/cover/oKWz2s90Z218LE8pFthP.png?w=400&ar=3.55&fit=crop&crop=entropy&auto=compress,format)

Senior Software Engineer [TypeScript] (Prisma Postgres)
Prisma
Remote
Senior
Node.js
TypeScript
PostgreSQL








Domain Architect Ricardo Platform (f/m/d) | 80-100% | Hybrid working model | Valbonne France
SMG Swiss Marketplace Group
Canton de Valbonne, France
Senior
Principal JavaScript Performance Engineer (with C++ / Java / C# exposure) - London
techstack Recruitment
Charing Cross, United Kingdom
Remote
€75K
C++
Java
React
+4
Front end Developer | Usability
Haystack People
Zwanenburg, Netherlands
React
Next.js
JavaScript
TypeScript
Digital Optimisation Manager - UX / A/B Testing / CRO
Surestream Digital ltd.
Remote
€55K
Intermediate
CSS
HTML
Figma
+7
Frontend Developer (Vue.js) - Remote from Barcelona
Precitec 3D Metrology
Barcelona, Spain
Remote
API
C++
GIT
Python
+4


