Reply To: Change dns-prefetch to preconnect

Home Forums Support Change dns-prefetch to preconnect Reply To: Change dns-prefetch to preconnect


This is before (with no prefetch/preconnect)…

and this is after…

Seems that some numbers are better, some are worse. However, I do see that it loaded the DNS for at the same time as the request to

To compare, here is the results running the following lines in wp_head of Hooks.

<link rel='preconnect' href='' crossorigin>
<link rel='preconnect' href='' crossorigin>
<link rel='preconnect' href=',regular,700' crossorigin>

Interestingly, you can see using the preconnect in Hooks, that it loads the resources from and does the SSL connection right there, as opposed to waiting when using the function you provided.