Create a timer using Web Workers/Javascript

Random ramblings

If you don’t know about web workers learn them here: https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers

Disclaimer: Might not follow strict coding standards, this is just a demo.

This post basically shows how you can use webworkers to display a timer. For this I will be using the following files:
a. index.php
b. worker.js

Inside your index.php, lets write some javascript.

View original post

Publicités
Par défaut