Skip to content

Instantly share code, notes, and snippets.

@bmuenzenmeyer
Created March 30, 2014 13:04
Show Gist options
  • Save bmuenzenmeyer/9872525 to your computer and use it in GitHub Desktop.
Save bmuenzenmeyer/9872525 to your computer and use it in GitHub Desktop.
Yepnope Gist
<script src="lib/yepnope.1.5.4-min.js"></script>
<script>
if(window.matchMedia("(min-width: 30em)").matches){
yepnope([{
load: 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js',
complete: function () {
if (!window.jQuery){
yepnope('lib/jquery-1.9.1.min.js');
}
}
}, {
load: ['js/bmz.min.js'],
complete: function (){
jQuery(function(){
bmz.init();
});
}
}]);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment