Is using DNS prefetch vs Preconnect better for website speed?

by AJade
1 replies
Most of the website that I do SEO for are using prefetch. I understand that dns-prefetch will only do the DNS lookup, while preconnect will do the DNS lookup, TLS negotiation, and the TCP handshake. We are considering making some changes to the coding. Have you changed this for SEO purposes and seen your website speed up?
#dns #preconnect #prefetch #speed #website
Avatar of Unregistered
  • Profile picture of the author Yvon Boulianne
    You will get better results with preconnect than dns-prefetch. This is because preconnect establishes the connection with the TLS handshake while dns-prefetch just stores the cached DNS resolution. So dns-prefetch is only a small part of the work required to establish a network connection.

    Finally, both are useless if you only load resources from the same domain.
    Signature
    Stop Struggling With Your Website and Marketing
    30$ / task, pay after done!
    {{ DiscussionBoard.errors[11635205].message }}

Trending Topics