I'm writing chrome extension for a site. This site has an infinite scroll feature which loads additional details in a div as the user scrolls. I'm writing a chrome extension that can automatically scroll to the bottom of the document and load all the details for the user, the extension keeps scrolling till no more additional details are available. The extension works perfectly when the tab is active, however when the tab or the chrome window is not active, the extension merely scrolls to the bottom of the page and no additional details are loaded in the div till the tab becomes active again.
Is there a way I can force chrome to load the additional details even when the tab is inactive ? I have tried using window.focus()
or element.focus()
, however these do not work.