--

Web workers are great (I've got a couple of links to my web workers tutorial in the article) but I still like this lightweight approach for simple one-off UI update task. Web workers is a bit heavier weight with all the message passing. That said, you can definitely get into trouble if you decide to get too elaborate with timers.

--

--

Matthew MacDonald
Matthew MacDonald

Written by Matthew MacDonald

Teacher, coder, long-ago Microsoft MVP. Author of heavy books. Join Young Coder for a creative take on science and technology. Queries: matthew@prosetech.com

Responses (1)