How to load your javascript on your page with the html/javascript widget after all the dom has been done?

0
Anyone knows if it's possible to load your javascript on your page with the html/javascript widget after all the dom has been done? - @Vincent Coutuer
asked
1 answers
1

Take a look at the mutation observer, i use this to scan the dom for mutations, and in the mutation callback you can query until you get what you want, then disconnect the observer. you can also do it with a timeout, but do a continual timeout over and over until you find it, just remember to somehow remove the recursive timeout when the page is left. - @Skullquake

https://inovosandbox-sandbox.mxapps.io/link/view?guid=29273397577925227&page=Anonymous/pg_posts.page.xml

answered