lundi 8 juillet 2019

What is the best robust way to poll for a html element to load?

I would like to wait/poll for a particular html element to load. How can I achieve this via native javascript without using any libraries. document.ready() , DOMContentLoaded seem like a heavy hammer. I need a simple way to poll for an elements availibility in the DOM.




Aucun commentaire:

Enregistrer un commentaire