Return to Snippet

Revision: 28030
at June 29, 2010 23:44 by jonkemp


Initial Code
var $active_light = $('#traffic_light input.on');
$active_light.bind('click', function(){...})
	.css('border', '3px dashed yellow')
	.css('background-color', 'orange')
	.fadeIn('slow');

Initial URL
http://www.artzstudio.com/2009/04/jquery-performance-rules/

Initial Description
Use chaining in jQuery to reduce the code size and gain better performance.

Initial Title
jQuery Chaining

Initial Tags
javascript, jquery

Initial Language
JavaScript