javascript - What is difference between chrome.webNavigation.onCompleted and chrome.tabs.onUpdated.addListener with 'complete' -
in chrome apis there 2 functions theoretically points same evet. chrome.webnavigation.oncompleted , chrome.tabs.onupdated.addlistener changeinfo=complete . what difference between these 2 , 1 guarantee everthing in page have loaded. have found chrome.tabs.onupdated.addlistener fire when few http requests remaining. the chrome.webnavigation.oncompleted invoked when navigation occurs in subframe whereas chrome.tabs.onupdated.addlistener triggered when tab updated due change in tab's property status or url . observe changeinfo object passed callback function here . also, chrome.webnavigation.oncompleted supports filtered events, can specify filter event triggered when filter passed. observe here how apply filters event. so, if use both event listeners, observer chrome.webnavigation.oncompleted fired many times single tab whereas chrome.tabs.onupdated.addlistener might fire once or twice (due status change loading complete). i hope helps.