Return to Snippet

Revision: 45621
at May 5, 2011 03:53 by kevinlearynet


Initial Code
var carousel = $(".carousel");
if ( carousel.length > 0 ){
	head.js("js/jcarousel.jquery.min.js", function() {
		carousel.jcarousel({
			wrap: 'circular', 
			visible: 4, 
			easing: 'swing',
			scroll: 2,
			animation: 800,
			initCallback: function(){
				carousel.removeClass('clipped');
			}
		});
	});
}

Initial URL

                                

Initial Description
Loading external scripts on demand the smart way with Head JS

Initial Title
Head JS - Smart external scripts on demand

Initial Tags
ajax, javascript, jquery

Initial Language
jQuery