[wp-trac] Re: [WordPress Trac] #8957: 100% CPU, unresponsive javascript when leaving admin "Edit Posts" and "Edit Post" pages

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 26 14:19:42 GMT 2009


#8957: 100% CPU, unresponsive javascript when leaving admin "Edit Posts" and "Edit
Post" pages
-------------------------------+--------------------------------------------
 Reporter:  _timk              |        Owner:  azaozz
     Type:  defect (bug)       |       Status:  new   
 Priority:  normal             |    Milestone:  2.8   
Component:  JavaScript         |      Version:  2.7   
 Severity:  major              |   Resolution:        
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Comment (by azaozz):

 Replying to [comment:10 _timk]:
 > ... but the delay comes back if you use the Quick Edit function on the
 Edit Posts page, then navigate away.  I'd imagine events are being
 attached to the category checkboxes for something to do with the edit
 form, and then they have to be unbound on unload.

 That's right. When using quick edit there's a keydown event that would
 save the changes on pressing Enter. Will try removing it from the
 categories checkboxes. Also jQuery seem to keep all form elements in it's
 cache (can be seen in Firebug) and since each category has a checkbox,
 having thousands would slow it down considerably.

 Don't see an easy fix or workaround for this. Perhaps can have categories
 added the same way as tags, by typing the name and using suggest. Could
 probably have the top 30 or 50 saved in the db as serialized list for fast
 loading and add a field that would use the suggest functionality for the
 rest. Could be a bit confusing for the user.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8957#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list