Illegal invocation at image.tsx (1.0.6)

It doesn’t crash thanks to the latest changes, but native lazy load still doesn’t work! When the flag is active all the images are loaded.

I see. I have been able to reproduce the bug and I’m working to solve it.

It seems like if you set loading="auto" even with the lazy image loading flag enabled in chrome://flags the images are not loaded lazily. If I set loading="lazy" for every Image, it works…

We can use loading="lazy" by default in the Image component or pass the loading property every time Image is rendered in the theme. We can also make it configurable from the settings and set it to lazy by default…

What would be the best option, @luisherranz?

Ohhh, I see. Then we thought it was not working because in "auto" the browser is the one making the decision. So, if it works with "lazy", then it is working just fine! Maybe if we try with Slow 3G it does the lazy loading.

I’d leave the default as "lazy" for now…