Skip to content

Draft: Remove global image lazy loading

What does this MR do and why?

This MR improves page performance by getting rid of LazyLoader class, which is a part of our image lazy loading.

The class was using IntersectionObserver and MutationObserver to find images that are lazily loaded.

Since the class was using loading attribute in supported browsers it can be safely removed and Rails could simply return loading=lazy for the images rendered on the server.

No functional or visual change expected.

Merge request reports

Loading