From Origin Trial to DevTools Fix: Improving Speculation Rules Debugging

⚡ Chromium 🔧 TypeScript / DevTools 👤 Helmut Januschka

When you're testing a Chrome origin trial and the debugging tools don't cut it, you fix them

Status: 🚧 In Review

The Context: Prerender Until Script at krone.at

At krone.at, Austria's largest news website, we're always looking for ways to make our site faster. With millions of daily pageviews and readers constantly jumping between articles, navigation speed directly impacts user experience.

When Google announced the "Prerender Until Script" origin trial, we jumped on it immediately.

The idea is powerful: prerender pages speculatively, but pause before executing JavaScript. This gives you the performance benefits of prerendering (instant page loads!) without the complexity of handling script side effects during speculation. When the user actually navigates, scripts run normally.

For a high-traffic news site like krone.at with thousands of article links, this is huge. We can prerender article pages as users browse the homepage or section pages, making navigation feel instant.

The Problem: DevTools Debugging Was Painful

As we started implementing speculation rules for krone.at, I ran into a frustrating UX issue. The Speculation Rules panel in Chrome DevTools (Application → Speculative loads) shows all your prefetch and prerender attempts. Great in theory.

But on a real site with many speculation rules, finding specific entries becomes a nightmare:

When you're trying to debug why /artikel/12345 isn't prerendering correctly, scrolling through hundreds of entries isn't fun.

The Fix: Text Filter for Speculation Rules Panel

I reached out to Barry Pollard (author of the origin trial blog post and a Chrome performance hero) who helped shape the approach. The result: a proper text filter for the Speculations panel.

Bug: 479524246
CL: IN REVIEW Add text filter to Speculation Rules panel

Why This Matters

Speculation Rules are the future of web performance. With features like:

Good debugging tools are essential. When you're implementing these features on a production site like krone.at, you need to:

This small DevTools improvement makes that workflow much better. What started as a pain point while implementing speculation rules for krone.at became a contribution that will help every developer working with this technology.

The Collaboration

This is a great example of how the Chrome team supports external contributors. Barry helped validate the approach and ensure the UI patterns matched DevTools conventions. The feature went from idea to implementation in days, not months.

When you're testing a Chrome origin trial and find rough edges in the tooling, file a bug, propose a fix. The team is receptive.

Current Status

The CL is in review. Once merged, this will ship with Chrome DevTools, available to everyone debugging speculation rules.

Try It

If you're interested in speculative prerendering:

  1. Read the Prerender Until Script blog post
  2. Check out the Speculation Rules documentation
  3. Sign up for the origin trial if you want to test the new features

And once this CL lands, you'll have better filtering to debug your implementation!


Links: