None of this stuff is needed if you use the Modernizr complete event. It will prevent the multiple loads itself.