Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maybe they trigger timers immediately


And how about server-side state?

Imagine you use setInterval to load a new paragraph from a server, and the server only provides a new parapgraph 1200ms after the first polling?


Each time we re-analyzed the page, we got more data and more URLs for the crawler to grab and have waiting for us the next time we analyzed that particular page. Of course, session-dependent content would get badly messed up, but that generally doesn't make useful (or at least repeatable) search results anyway.

Source: I primarily did JavaScript execution for Google's indexing pipeline 2006 to 2010.


Waiting for all one-time async operations to finish is not unfeasible. Async loops (like pinging server for possible updates) is a tad harder.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: