Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 972
Mild Fuzz Avatar asked Sep 15 '11 13:09

Mild Fuzz


People also ask

How to test prerender?

You can also use prerender-test.appspot.com to test that your site works correctly under prerendering. Further, from within Chrome, you can go to chrome://net-internals#prerender to see a list of attempted prerenders and whether they were used, and if they were not used, why they were canceled.

What is pre rendering Web pages?

Pre-rendering, or prerendering, is a web browser feature that speeds up your web surfing experience. When you view a web page, some content from another page or site might be prerendered in anticipation of you going there next.

How does Prerender IO work?

The Prerender.io middleware that you install on your server will check each request to see if it's a request from a crawler. If it is a request from a crawler, the middleware will send a request to Prerender.io for the static HTML of that page. If not, the request will continue on to your regular server routes.


1 Answers

You can also use prerender-test.appspot.com to test that your site works correctly under prerendering. Further, from within Chrome, you can go to chrome://net-internals#prerender to see a list of attempted prerenders and whether they were used, and if they were not used, why they were canceled.

like image 172
dma Avatar answered Oct 27 '22 02:10

dma