You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 fallback link 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.
The text was updated successfully, but these errors were encountered:
2. 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.
This is harder to fix, but this issue discusses some first steps we're considering taking on Chromium side toward maybe, eventually resolving this. https://issues.chromium.org/issues/335328446
Hi @domenic,
Thanks for the response and great to see that both of these issues are being worked on. The prefetch not working in incognito is a major one. As many people use incognito/private mode to browser web pages, I think the speculation rule of the same origin should be allowed whether using prefetch or prerender.
For the adblocker issue, I'm optimistic that some middle ground can be found but not fully sure.
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):
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.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.
The text was updated successfully, but these errors were encountered: