The preconnect resource hint is a useful way of making sure connections to external domains are ready as soon as possible. It can improve performance by enabling the browser to start downloading critical assets right after discovering them in the HTML.
Because every Shopify store makes use of
cdn.shopify.com, the platform already includes the preconnect resource hint inside the
Link header in the main document response. This makes the preconnect in the HTML redundant.
With the rollout of moving CDN assets to the main store domain, it becomes even more unnecessary as there may be no assets coming from
cdn.shopify.com. In this case, the redundant preconnect can negatively impact performance.
The following examples contain code snippets that either fail or pass this check.
The following example contains the default configuration for this check:
|Whether the check is enabled.
|The severity of the check.
Disabling this checkAnchor link to section titled "Disabling this check"
Disabling this check isn't recommended because preconnect to Shopify's CDN is in the best case redundant and in the worst case negatively impacts performance.