-
Notifications
You must be signed in to change notification settings - Fork 24
dns-prefetch's future #37
Comments
We may also want to discuss possible deprecation/removal path for |
Is there an existing spec for |
There's no existing spec. If it should in fact be specced (which is the question I'm raising in this issue :D), it makes sense for it to be as part of Resource Hints. |
Thanks, I've tried to clear up my confusion on blink-dev too. |
I don't have this data handy and am unlikely to be able to get it quickly enough to know actual real world usage in a short amount of time. Have you queried http archive for the data? |
I searched in the 20150101 httparchive data, and 74014 out of 10138268 resources (not pages) have a case-insensitive match for "dns-prefetch". That's ~0.7%. If having better data on this would help move the discussion along we could measure usage in Blink. Since that's per page view my hunch is that the number would be higher than 0.7%, and it would be surprising if it's in the 0.01% range where we usually talk about removing things. |
Thanks for looking into the data! :) That certainly looks like something we can't talk about deprecating and removing. Having a better performing alternative may move the niddle somewhat, but as is, it looks like we may need to add it to the spec. |
My previous argument for "upgrading" dns-prefetch to preconnect was based on premise that there are no instances where you want to dns-prefetch and not preconnect. However, as Ryan and Matt pointed out (blink-dev thread), there are cases where you might not know the type of socket (crossorigin or not) ahead of time, or may not want to trigger the full handshake. As such, I think dns-prefetch is a valid stand-alone optimization, and I don't think we should deprecate it. Also, I don't think If there are no objections to above, I'm OK with adding dns-prefetch to Resource Hints. |
Agreed that dns-prefetch should be added to the spec. |
During an Intent-to-ship discussion for
Link
header support fordns-prefetch
, certain use-cases were raised where authors may be interested in dns queries, but may not be interested in full preconnecting:Do these cases justify the case for
dns-prefetch
to stay as a separate hint?I think
<link rel=preconnect pr>
can address the uncertainty of the latter 2 cases, and delegate handling them to the browser, but I'm interested in gathering feedback on this.The text was updated successfully, but these errors were encountered: