Web Worker Demo
-Works in Chrome, Safari, and Firefox. Web worker portion works in Opera.
-Use arrow keys to change the direction of the animated square. The square is animated with requestAnimationFrame.
-Click the button below to start or stop the worker.
- -Messages from Worker:
- - +This demo shows how main window animation isn't interrupted by Web Workers. Note that the animation does not work in Opera (due to lack of requestAnimationFrame support).
+Use arrow keys to change the direction of the animated square. The square is animated with requestAnimationFrame.
+
+
+
+ Click the button below to start or stop the worker.
+ +