[wp-trac] [WordPress Trac] #15650: Inefficient selectors in common.dev.js

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 2 15:26:22 UTC 2010


#15650: Inefficient selectors in common.dev.js
--------------------------+-------------------------------------------------
 Reporter:  GamajoTech    |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  Awaiting Review        
Component:  Performance   |     Version:                         
 Severity:  minor         |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------
 There are some repeated jQuery selector lookups that could be cached, and
 incorrect attempts at adding contexts in common.dev.js.

 Some minor optimisations that sacrifices a little bit of code readability,
 for a double speed improvement of caching expensive jQuery selector
 lookups, and reducing the size of common.js by ~300 bytes (5%) when
 minifying.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15650>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list