Skip to content
Advertisement

Chrome extension – script loaded event?

Is it possible to get an event (or other way of knowing) when a specific script is loaded into a page?

E.g. I have a page action that should perform action if jQuery is present and have finished loading.

Advertisement

Answer

I ended up listening for “DOMContentLoaded” and then perform required actions.

Thanks for all input

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement