Search code examples
htmltestingprefetchprerender

how to test prefetch/prerender


I have started to load a few key resources and pages using the prefetch/prerender system.

Is there a way to ensure that the resources in question are actually being preloaded?


Solution

  • Google recommends using the Page Visibility API to test if a page is being prerendered. I'm not sure how well it works cross-browser (but what does in HTML5).