javascript - How to detect that Google Instant page has loaded completely? -


I am working on a browser extension (thinking) - I need to display some data about the search results Which have been shown.

Problem: If anything is added on the results page of Google Instant, while it is still in the process of being loaded, then it will do any additional overwriting, I would like to introduce myself some really infinite set of interlabel business I was caught by writing (Waiting for the content of ol # rso , stop changing in size), I think that means that I'm not sure how strongly determined that page load Happening.

I can just wait 1-2 seconds, but I want to start getting the data as much as the results are actually loaded.

Edit: Keep in mind, I can not use DOMElement because IE8 does not support it.

Try this:

  window.addEventListener ("message", Function (e) {if (e.data == 'jrc') console.log ('loaded')}, false);   

It should work in IE 8+ and all other browsers:

If it does not work in IE 8 (just can not test on my Mac) , let me know. I believe in the last time I am RJS Have a great deal of understanding about ;)

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -