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
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024