11

我已经开始使用预取/预渲染系统加载一些关键资源和页面。

有没有办法确保有问题的资源实际上是被预加载的?

4

2 回答 2

14

您还可以使用prerender-test.appspot.com来测试您的网站在预渲染下是否正常工作。此外,在 Chrome 中,您可以chrome://net-internals#prerender查看尝试的预渲染列表以及它们是否被使用,如果它们未被使用,为什么它们被取消。

于 2012-07-13T15:27:56.227 回答
3

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).

于 2011-09-15T14:17:04.200 回答