Modernizr/Modernizr — Issue #475: Moderniz.mq (max-device-width)
Author: grayghostvisuals
Created: 2012-01-26 03:38:32+00:00
State: open

I use Modernizr with EnhanceJS by The Filament Group and find it a totally wicked combo. One thing though, I am trying to load resource plugins based on device-width. Unfortunately this does not work in The majority of browsers on both Windows7 and Mac Lion

Lookie No Workie :(

Modernizr.load([ {
test : Modernizr.mq(max-device-width: 1024px) ,
yep : 'js/mymobileplugins.js',
nope : 'js/mydesktopplugins.js'
}
])