Search code examples
javascriptgoogle-chrome-extensiondom-events

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.


Solution

  • I ended up listening for "DOMContentLoaded" and then perform required actions.

    Thanks for all input