shlogg · Early preview
Peter Mbanugo @p_mbanugo

Speed Up Your Website With Speculation Rules API

Web browsers improve page loading with APIs like Speculation Rules & Early Hints. Developers can control pre-rendering & prefetching to speed up websites to native-like navigation.

The web platform and browsers are making lots of improvements to improve how pages are loaded, and providing APIs so developers can control some parts of it. A few of those are view transition API, 103 Early Hints, and Speculation Rules, which gives us a nice way to make our websites load instant/ultra-fast, with native-like navigation. We covered Early Hints in a previous episode and this video focus on the Speculation Rules APIs and how it can speed up your websites.
Speculation Rules is a way to programatically tell the browser which pages to pre-render or prefetch, and when to do that. In...