ErikHen / PictureRenderer

Simplify the rendering of HTML Picture elements for ASP.Net. With support for responsive, lazy loaded images.
MIT License
4 stars 5 forks source link

Feature: fetchPriority hints #17

Closed karolberezicki closed 10 months ago

karolberezicki commented 10 months ago

Hi Erik,

This pull request introduces fetchPriority attribute - this will allow setting priority to images, improving LCP in some scenarios. While it's not yet universally supported, it's supported in Chromium-based browsers, taking most of the current market share. Hopefully you find it useful :)

More information: https://web.dev/articles/fetch-priority

ErikHen commented 10 months ago

Thanks Karol, that's a great addition, and an awesome pull request! I will update the nuget shortly.