#WebPerfTip If you use "rel=dns-prefetch" to support older browsers, use separate link tags to safely implement the fallback.
⚠️ Putting "dns-prefetch" and "preconnect" in the same causes a Safari bug where "preconnect" gets cancelled.
#WebPerf
⚠️ Putting "dns-prefetch" and "preconnect" in the same causes a Safari bug where "preconnect" gets cancelled.
#WebPerf
Comments
At this point I'd probably just recommend picking whichever is more appropriate (depending on the liklihood to need to fetch a resource not in cache).
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/preconnect
Pat’s approach is probably the most appropriate now