Execute javascript function asynchronously
2 answers
Not. JavaScript runs in one thread per page.
You want HTML5 Web Workers . There's a good introduction to HTML5 stones.
However, the Google Gears plugin provides WorkerPool
:
The WorkerPool API allows web applications to run JavaScript code in the background without blocking the main script from executing.
There's also a suggestion from the Gears team to add this to HTML5. Strike>
+4
source to share