[wp-trac] [WordPress Trac] #13615: Confusing behavior adding items to nonexistent menu

WordPress Trac wp-trac at lists.automattic.com
Sat May 29 20:49:57 UTC 2010


#13615: Confusing behavior adding items to nonexistent menu
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |        Owner:  nacin 
     Type:  defect (bug)  |       Status:  closed
 Priority:  normal        |    Milestone:  3.0   
Component:  Menus         |      Version:  3.0   
 Severity:  normal        |   Resolution:  fixed 
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:4 markjaquith]:
 > It's shorter, and because jQuery is WP's JS library and I like to use it
 wherever possible. It tends to reduce the incidence of browser-specific JS
 bugs.

 OK.  The reason I ask is that retrieving an element by its id using
 `document.getElementById` is one of the most widely-supported actions
 across browsers (many more than jQuery itself claims to support), and it's
 almost universally very fast.

 I've tested it across a number of browsers, and at best (typically in the
 slowest browsers), jQuery is only twice as slow as the host method in
 retrieving an element by ID; in the fastest modern browsers it seems to be
 at least several times slower.

 I guess I'm overdue for my promised blog post about the more general
 issue, but this particular line seems like a no-brainer: at the cost of a
 few characters you get wider support and better performance, guaranteed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13615#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list