Skip to content

Instantly share code, notes, and snippets.

@mikaelz
Last active December 17, 2015 19:49
Show Gist options
  • Save mikaelz/5663266 to your computer and use it in GitHub Desktop.
Save mikaelz/5663266 to your computer and use it in GitHub Desktop.
yepnope snippers https://github.com/SlexAxton/yepnope.js - an Asynchronous Conditional Resource Loader
yepnope([{
load: base_url + '/include/jquery/jquery.jqtransform.js',
complete: function () {
$('.jqtransform').jqTransform();
}
}, {
load: base_url + '/include/jquery/jquery.fileinput.js',
complete: function () {
$('#file').customFileInput();
}
}, {
load: base_url + '/include/jquery/jquery.validate.min.js',
complete: function () {
$('#form').validate();
}
}]);
yepnope( base_url + '/frontend_body.js' );
yepnope([
base_url + '/frontend_body.js',
base_url + '/frontend.css'
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment