Web Workers simplified - webworq
webworq is a javascript library to help create reusable Web Workers. It includes a Web Worker poly-fill so the same code can be run in older browsers on a single thread.
Web Worker is a W3C technology that allows a javascript application to move long running tasks off of the browser's main thread and onto a separate thread. One of the advantages of webworq is that its classes provide basic support functionality involving the routing of messages between the Client that runs in the browser's main thread and the Worker which is running on another thread. This allows you to spend time creating the functionality you need for your web page or app rather than on support code.
webworq also encourages modular workers that add functionality as needed for specific tasks through the import of scripts that augment a class's functionality.
Find webworq at github: http://rlmcneary2.github.com/webworq/
Written by Rich McNeary
Related protips
Have a fresh tip? Share with Coderwall community!
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside