我已经开始使用预取/预渲染系统加载一些关键资源和页面。
有没有办法确保有问题的资源实际上是被预加载的?
您还可以使用prerender-test.appspot.com来测试您的网站在预渲染下是否正常工作。此外,在 Chrome 中,您可以chrome://net-internals#prerender
查看尝试的预渲染列表以及它们是否被使用,如果它们未被使用,为什么它们被取消。
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).