soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 31 forks source link

Image Lazy Load only for ID, not for class selector #3510

Open aadlung opened 4 months ago

aadlung commented 4 months ago

Describe the bug When adding images, you can click the "Lazy Load" checkbox at the very bottom of the image configuration. This can only be done for one image after another, if you are on the corresponding ID selector. Having e.g. an icon box or similar, I would expect to be able to click the lazy load for the class selector as well - as it's displayed.

Sandbox: https://oxygen-q6xnfpst3ppxl.oxygen-demo.qsandbox.org/

IF YOU CAN'T PROVIDE A SANDBOX REPRODUCTION: Steps required to reproduce the bug: Steps to reproduce the behavior:

  1. Add an image
  2. Add an additional CSS class
  3. With the ID selected, check and uncheck the "Lazy Load" feature
  4. With the CLASS selected, try to check and uncheck the "Lazy Load" feature - does not work.

CleanShot 2024-02-26 at 16 37 49

maltmann-muc commented 3 months ago

@aadlung Lazy-load is a HTML attribute: loading="lazy"

https://developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading

You can't set that by CSS. So you can't set it by a class.