I've been using JS to lazy load images when in viewport. thinking of switching to just loading=lazy. Any reason _not_ to?

@raymondcamden No reason not to, do it today!

You can even use it on header images as the heuristic of "in viewport" applies there too.

You can even dig into possibilities with https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding while you're at it!

HTMLImageElement: decoding property - Web APIs | MDN

The decoding property of the HTMLImageElement interface provides a hint to the browser as to how it should decode the image. More specifically, whether it should wait for the image to be decoded before presenting other content updates or not.

MDN Web Docs