Skip to content

Broaden scope of lazy loader to preview images in Modal

What does this MR do and why?

Images were not loading in preview markdown when using a modal as modal is outside of content-body. See issue #471976 (closed)

The code changes the element that the lazy loader observes for new content. Previously, it observed the element with the id content-body, but now it observes the entire body element. This means that the lazy loader will now load new content as soon as it appears anywhere on the page, rather than only when it appears within the content-body element.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #471976 (closed)

Edited by Fred de Gier

Merge request reports

Loading