Skip to content

DNS Prefetching + Preconnect of assets_host (CDN Domain)

Tim Zallmann requested to merge 49107-prefetching-of-assets-and-cdn-domain into master

What does this MR do?

This adds as a <link rel="dns-prefetch" href="//assets.gitlab.com"> dns-prefetch hint the setup asset_host so the browser will try to prefetch already the DNS for the CDN domain. It also adds a preconnect hint so that the connection to the CDN is made as fast as possible <link href="//assets.gitlab.com" rel="preconnect" crossorigin>

More information:

https://www.keycdn.com/blog/resource-hints/

https://w3c.github.io/resource-hints/

Why was this MR needed?

To improve performance especially on first load

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #49107 (closed)

Edited by Douwe Maan

Merge request reports