Extension IOS Safari - what listener for URL change?

I'm building an extension for Safari on IOS and would like to have the extension pop up automatically on specific URLs. Currently I am using Dom content load as a listener to see if the page has changed but on some websites, this listener doesn't work. I have to reload the page for it to work.

Is there another listener I can use that can detect any change the URL?

Replies

For example, I am not getting any detection for any page changes on the website lululemon.com

Just so I understand, you are attempting to inject a content script that listens for DOMContentLoaded to get the URL?

What if instead you used tabs.onUpdated events from your background page?

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/onUpdated

@bweinstein Thank you! Will a Mozilla API work for our IOS Safari Extension?