/ Published in: JavaScript
URL: http://www.artzstudio.com/2009/04/jquery-performance-rules/
Use chaining in jQuery to reduce the code size and gain better performance.
Expand |
Embed | Plain Text
var $active_light = $('#traffic_light input.on'); $active_light.bind('click', function(){...}) .css('border', '3px dashed yellow') .css('background-color', 'orange') .fadeIn('slow');
You need to login to post a comment.
