BOLT04
TTCTheo's Typesafe Cult
•Created by BOLT04 on 9/19/2023 in #questions
How to use fetchpriority="high" in a <picture> element?
fetchpriority is often used to optimize images that are the LCP (a core web vitals metric) on pages.
It can be used on <img>, <script> and other tags, but I don't think it works for the picture HTML tag.
If I'm using the picture tag in order to have one image for each viewport, how can I optimize the image that is loaded using fetchpriority?
Any help is appreciated.
2 replies