3 ms·
Is there a "standard" way of detecting mobile devices and loading jQuery Mobile along with your site's mobile JavaScript instead of the desktop version? Right
by Flenser 14y ago
Is there a "standard" way of detecting mobile devices and loading jQuery Mobile along with your site's mobile JavaScript instead of the desktop version?
Right now I'd do it like this:
Modernizr.load({
test: Modernizr.touch,
yep : ['jquery-mobile.js','mobile.js']
nope: ['jquery-ui.js','desktop.js']
});