Submitted by: Srinath M S(srinath_ms@yahoo.com)

Monday Mar 19th 2018 by Srinath M S

Language: Web, Expertise: Intermediate - Check whether or not a browser supports Web Workers with this JavaScript sample.

Using the Modernizr script, we can check if the browser supports web workers. Please see the JavaScript code below for an example.

$(document).ready(function () {
            if (!Modernizr.webworkers)
              //there is no support
Mobile Site | Full Site