Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check has link[rel=preconnect] done its job or not?

I append link[rel=preconnect] in my page's HTML code. But how can I check works preconnect or not?

Preconnect does not appears in Network panel of DevTools, I don't see it in chrome://tracing.

Which tools can I use to see this event?

like image 740
andre487 Avatar asked Oct 07 '16 20:10

andre487


2 Answers

You can use Chrome DevTools for this, manually. Check timing tab of URI for which you defined preconnect, if DNS-Connect-SSL haven't took time or it negligible small (like, 2-5msec), than you can consider preconnect worked. The only trap here is repeated test, when you connection is not expired yet in browser.

like image 120
Alexander Podkopaev Avatar answered Sep 21 '22 07:09

Alexander Podkopaev


You can see it in the waterfall created by https://www.webpagetest.org/

Here is an example:

enter image description here

Note that your website needs to be accessible online, for WebPageTest to be able to read it.

like image 35
Gaël Métais Avatar answered Sep 21 '22 07:09

Gaël Métais