Personalized checkout and custom promotions with Shopify Scripts
I have the following code, which theme-check is flagging as "For better performance, prefer using the preload_tag filter":
<link rel="preload" as="font" href="{{ header_font | font_url }}" type="font/woff2" crossorigin>
I tried using this liquid:
{{ header_font | font_url | preload_tag: as: 'font' }}
which generates this code:
<link href="not a real url" rel="preload" as="font" rel="preload">
But as its missing the crossorigin tag, this code isn't used due to CORS
I suspect the preload_tag function needs to be augmented to be able to add crossorigin.
Is there another solution? Thanks
User | RANK |
---|---|
2 | |
2 | |
2 | |
2 | |
2 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023