I'm currently writing a very simply Google Chrome Extension that utilizes Content Scripts, to simply add additional text onto a webpage by grabbing the element and appending to its innerHTML
when the page is finished loading.
The issue is that the webpage I'm modifying is rich in media and takes several seconds to load, thus causing the additional text to not display until a few seconds after the rest of the text has loaded.
The element I'm grabbing is a span
. Is there any way of listening for this element to be loaded so that I can modify it as soon as possible?