Why not use Modernizr.load here and move the checks below to the complete handler?