4 ms·
"Predictive prefetching makes sure Chrome already has the page data before you finish typing." As a website owner, I really hate that 'feature', it really scre
by Samuel_Michon 14y ago
"Predictive prefetching makes sure Chrome already has the page data before you finish typing."
As a website owner, I really hate that 'feature', it really screws up the exit rate in my site stats (I don't run ads on my sites.)
- joshuahedlund 14y agoI always assumed prefetching just grabbed html output... does it run javascript too?
- bzbarsky 14y agoPrefetching just grabs HTML. Chrome also does prerendering in some cases, which runs JS, fetches stylesheets, etc. The user may or may not ever see the result, of course.
- simonbrown 14y agoYou could use the page visibility API to wait until the page is visible before loading the analytics code. https://developers.google.com/chrome/whitepapers/pagevisibility https://developers.google.com/chrome/whitepapers/pagevisibil... This is only for prerendering. I think joshuahedlund is right about prefetching.