I want to execute a script when some data attribute are set. Attributes can be set AFTER the all page is loaded.
In that case the script doesn't execute.
<div data-id='' data-position=''></div>
<div data-id='3' data-position='67'></div>
You can use MutationObserver to listen attribute change and act upon.