I have a large set of data to be plotted on google map. Because of the data set size, google map always freezes for a few seconds before all the points are plotted. I used a
Javascript might not support multiple threads normally, but you can achieve the effect.
function spawnThread(func, params){
window.setTimeout(
(function(f, p){
return function(){
f.call(p);
}
)(func, params), 0
)
}
The main problem with this method would, of course, be checking on the success of the thread, I assume you could manage this using a global variable or something similar, wouldn't be a great solution, but it would work.