There are many different ways to solve this use case. You want to wait for an element to exist on the page and when it does, run a callback function. It seems simple enough, but what’s the easiest way? By using some recursion and a setInterval call, we can poll for an element using document.querySelector […]

The post Waiting for an Element to Exist With JavaScript appeared first on I Like Kill Nerds.