This post will help add preconnect crossorigin and dns-prefetch link tags to your shopify store to speed up page load and improve core web vital score.
Follow these steps or watch the video below.
- Login to your shopify admin area
- Click Online Store
- Click Edit Code from Actions
- Add the following code to your theme.liquid head section
- Replace href attribute with your store domain name
- Click Save button
That’s it, you are all done.
<link rel="preconnect" href="https://tubemint.com" crossorigin> <link rel="dns-prefetch" href="https://tubemint.com">