Chrome extension readyState is complete before body script function is completes

267 Views Asked by At

I have an extension that operates on pages that formats data, I need to wait for the function to complete to sweep up the data on the page. In using an Event Listener on readystatechange, When "complete". This does not work, the function has not completed. I can sleep for a second and all works fine, but this seems silly. Any help? Thanks.

0

There are 0 best solutions below