jquery/jquery — pull request #725 by mikesherov (2012-04-03 23:25:08+00:00)
Title: avoid unnecessary delegation as an optimization

Sorry about not having a ticket here, but I found this in my travels on another ticket.

Basically, the idea here is that inside of a jQuery.access loop, jQuery( elem ).css( type, value ); is called... which calls jQuery.fn.css, which calls jQuery.access, which calls jQuery.style. I'm just cutting out all the unnecessary delegation.

Perf results are here: http://jsperf.com/jquery-style-vs-css-optimization It's about a 25% speed boost, and is a win for clarity, maintainability, and performance, and is neutral on min+gz size.