3 ms·
You could use the page visibility API to wait until the page is visible before loading the analytics code. https://developers.google.com/chrome/whitepapers/pag
by simonbrown 14y ago
You 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.