Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Use MutationObserver to recognize annotations #1

@ryx

Description

@ryx

Is your feature request related to a problem? Please describe.
Right now the implementation expects manual calls to Datalayer.beforeParseDOMNode to recognize changes to the DOM and e.g. apply annotation callbacks.

Describe the solution you'd like
Using the MutationOberserver API we might be able to get rid of the manual calls and automatically check newly added DOM nodes for data-d7r-event* annotations. This would greatly improve the usability and convenience of the d7r annotations.

Describe alternatives you've considered
Manual updates are seriously inconvenient, polling is hacky and bad for the site performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions