Your detect should probably depend on the existing "webworkers" detect: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/workers/webworkers.js