I have a super simple extension to handle when the web page loads. This is what I have:
window.addEventListener(‘load’, pageLoaded);
function pageLoaded() {
alert(“winpicker pageLoaded() called…”);
}
alert(“winpicker extension 1.0 is loaded and running…”);
I do see the last alert box but not from pageLoaded. Any ideas, please?
UPDATE:
+++++++
I have specified “matches”: ["<all_urls>"]
in the manifest.json and tested many different pages. Only a handful of pages actually fire the page-loaded event! Most do not fire.
I tried clearing the browser cache, but it made no difference.
and I have not figured out why only certain pages trigger the event.