Last active
December 17, 2015 19:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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