Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
1 reply
Y7YA

Check if page has been cached

Trying to make a custom progress bar as there's no good solution for the app router, I've tried pretty much every relevant package.

It's easy until I get to the part where I want to disable the progress bar on pages that have already been cached and load instantly. So I want to somehow get something along the lines of
if(!pageIsCached) {
   loadProgress()
}


This is crucial for UX because if the user sees a loading bar on a site that's loading instantly it creates the illusion of the site being slow.
Was this page helpful?