I was reading about preconnecting scripts in order to speed up site loading. I had this question which I searched for and found nothing. Maybe because it doesn’t make any sense. Anyway, here’s the question:
Does this effect load speed?
<link rel="preconnect" href="/images/">
By /images/
I mean the images
folder in the same host that the index.html file exists in.
Alternatively, I can explain like this:
Imagine example.com
is the same host that hosts the index.html
file which has this piece of code in its header tag:
<link rel="preconnect" href="example.com/images/">
And of course, any image in the site is in the images
folder. Now, does that work?