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()
}
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.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server