by dtech · 11y ago · 0 comments
It's quite a common optimization to distribute assets on multiple domains. This is because only a limited number of connections are allowed to made per domain (changes with HTTP2).
Furthermore, a CDN often has a faster connection to the user and you might benefit from it already being in the cache on first connection.
We should test whether we should move the CSS back to the primary domain and pay the cookie uplift penalty to avoid the DNS and TCP penalty for that. (Another poster below rang that bell for me and it makes logical sense, but need to verify via testing.)