Re:Resource Hints for Modern Browsers
by SimeVidas on Thursday September 10, 2015 @12:45PM
(#10199117)
But what if the browser already has all the page’s subresources in the network cache? Wouldn’t the preconnects then be a waste?
The browser can make sense of this, the browser can also make sense of not doing a DNS prefetch if it already has one in-flight for the preconnect, etc.
The gains are such that it is better to add the hints than not.
You'll see it as a HTTP header:
It made a significant difference to Google Fonts speed as well as Persona.I'd definitely recommend using resource hints in your base HTML template or server controller, for the assets that you know every page will access. This is the low hanging fruit... making this super specific for each page likely won't fit into your CMS easily.