P.S.: Se vuoi che il tutto avvenga in background e sia totalmente invisibile all'utente devi usare i web workers (si tratta di uno standard supportato da tutti i browser più recenti). Un po' di info utili...
https://developer.mozilla.org/En/DOM/Worker
https://developer.mozilla.org/en/Using_web_workers

Rispondi quotando