adobe / helix-rum-enhancer

Add advanced functionality to Helix RUM Collection (client-side)
Apache License 2.0
1 stars 14 forks source link

viewmedia checkpoint missing for images added "later" #225

Closed kptdobe closed 1 month ago

kptdobe commented 3 months ago

When a block adds images slightly "later" in the loading sequence, the viewmedia checkpoint is not triggered for those. It is currently the responsibility of the developer to think about "observing" them. This requires education of developers and there might be ways to automate this (DOM MutationObserver ?).

This needs to be evaluated carefully, especially on the performance side.

igor-grubic commented 1 month ago

Adding the workshop (rushed) PR as it might be useful for illustrational purposes https://github.com/adobe/helix-rum-enhancer/pull/212/files

This is a feature that would be useful for SPAs, as view media is usually added dynamically.

adobe-bot commented 1 month ago

:tada: This issue has been resolved in version 2.20.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: