dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Mar 19, 2018

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


How to Check Whether or Not a Browser Supports Web Workers

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
            {}); 
Srinath M S
 
Thanks for your registration, follow us on our social networks to keep up-to-date