News for hackers. Stuff that matters.
Re:Open Web Device by Tichy on Monday February 27, 2012 @06:56AM (#3638647)
"HTML 5" has the web workers API for background tasks. They don't work while you visit other pages, though. I guess they'll have to introduce a new API for that.
Re:Open Web Device by bergie on Monday February 27, 2012 @07:03AM (#3638666)
webOS solved this by enabling apps to also ship Node.js code that would be able to run as background services.

https://developer.palm.com/content/api/dev-guide/js-services...

Given that Mozilla already made their JS engine emulate Node.js (http://blog.zpao.com/post/4620873765/about-that-hybrid-v8mon...), it might not be so far-fetched to think that something similar could be done with B2G.

Re:Open Web Device by azakai on Monday February 27, 2012 @11:33AM (#3639495)
> "HTML 5" has the web workers API for background tasks. They don't work while you visit other pages, though.

Web workers should continue to work while you visit other tabs. But not if you browse away from the page with the worker.