Open
Description
Recently I got to play with your newly updated script with Speculative Loading added to it. It's amazing but here are a few gotcha's that I faced, so I'm sharing them here (maybe you will fix some and add some to the documentation):
- Speculative loading doesn't work on the Incognito/Private window. If you check under "Application Tab" in your dev tools then you will see:
The prefetch was not performed because the browser is in Incognito or Guest mode.
I really wish there was a way/function to check if the user is using incognito mode and if so use the fallbacklink
mechanism otherwise use Speculative loading. Unfortunately, as much as I have tried I couldn't come up with a single function to check if the user is using incognito mode. - Another thing to keep in mind (maybe good for documentation), is if you have an ad blocker extension installed like uBlock or something then speculative loading will not work as these extensions disable speculative loading.
I truly hope you get a way to figure out if the user is using incognito mode and if so, don't do speculative loading.
Metadata
Metadata
Assignees
Labels
No labels