How to Preload an Image With the link rel="preload" as="image"
Last updated: Mar 10, 2021
Hello! Does anyone know a way to preload an image with the <link rel="preload" as="image" ...> ? I would like to preload my hero image, which is defined in Sanity for a FrontPage page type, but I'm not sure how I would get it before all other content. I'm using angular and the .NET client library. Also I'm using responsive images with the <picture> element...