[Speculation Rules](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API) (same-origin) are implemented in bug 1969396. Those rules can be specified via an inline script or an HTTP header, which are then added to an internal speculation rules list. The DevTools should provide help with debugging those by * adding a new entry to the Application panel that provides information around the rules definition and about prefetched and prerendered sources. * providing some indication on network requests whether they were fetched speculatively. * outputing errors in the Web Console for misconfigurations in the Speculation Rules and issues on fetching / prerendering sources. * Allowing to inspect prerendered sources. The Chrome DevTools team has a good [blog post explaining their support for Speculation Rules](https://developer.chrome.com/docs/devtools/application/debugging-speculation-rules) plus an [online demo page](https://chrome.dev/speculative-loading/common-fruits.html) that can be used for testing. Sebastian
Bug 2037321 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
[Speculation Rules](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API) (same-origin) are implemented in bug 1969396 (for prefetch). Those rules can be specified via an inline script or an HTTP header, which are then added to an internal speculation rules list. The DevTools should provide help with debugging those by * adding a new entry to the Application panel that provides information around the rules definition and about prefetched (and prerendered once implemented) sources. * providing some indication on network requests whether they were fetched speculatively. * outputing errors in the Web Console for misconfigurations in the Speculation Rules and issues on fetching any sources due to those rules. * Allowing to inspect prerendered sources (once prerendering is implemented). The Chrome DevTools team has a good [blog post explaining their support for Speculation Rules](https://developer.chrome.com/docs/devtools/application/debugging-speculation-rules) plus an [online demo page](https://chrome.dev/speculative-loading/common-fruits.html) that can be used for testing. Sebastian