Skip to content

Instantly share code, notes, and snippets.

@louisremi
Created May 5, 2011 14:22
Show Gist options
  • Save louisremi/957121 to your computer and use it in GitHub Desktop.
Save louisremi/957121 to your computer and use it in GitHub Desktop.
conditional resource loading with matchMedia and yepnope
yepnope({
test : window.matchMedia("(orientation: portrait)").matches,
yep : "portrait.js",
nope : "landscape.js"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment