3 ms·
Keep in mind though that if part of your loading time is parsing large amounts of JSON returned from your backend, this blocks the main thread and your loading
by rolux 13y ago
Keep in mind though that if part of your loading time is parsing large amounts of JSON returned from your backend, this blocks the main thread and your loading bar will be stuck for that time.
- bphogan 13y agoThis is where web workers will come in handy. I did a little promo video tutorial on loading data with Flickr using web workers. You can watch that at http://www.youtube.com/watch?v=4eDl1UOkp18&feature=c4-overview&list=UUoSneYMkdoA4mV4SipGC94Q http://www.youtube.com/watch?v=4eDl1UOkp18&feature=c4-overvi... I can't wait for those to be useful everywhere.
- the_cat_kittles 13y agoAre there any implementations of a task queue using web workers? It would be cool to have something where you can just decorate a function to do it on the web worker's thread instead of have to manually write the postmessage and onmessage stuff and have a separate worker.js