Opened 17 years ago
Closed 17 years ago
#6677 closed defect (bug) (fixed)
JS is horribly inefficient on Write -> Post/Link pages when lots of categories
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.5.1 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | General | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
There are probably lots of inefficiencies. This patch addresses two.
- Whenever a checkbox in "All Categories" is checked/unchecked, it syncs that new checked state with it's partner in "Most Used" and vice versa.
- On load (and maybe unload in some browsers during some kind of cleanup), wp-lists looks at each category checkbox and makes huge arrays. This is so that the current checked state of all category checkboxes is known (needed for ajax addition of categories).
The attached fixes:
- By only syncing the categories that are in both lists. To do this, various wp-admin/include/template functions have been tweaked so that they can be aware of what categories are popular.
- By vastly reducing the number of inputs wp-lists looks at on load and making slight efficiency tweaks to wp-lists.
Attachments (2)
Change History (12)
#3
@
17 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to tack on some more category list improvements.
Attached is some work by mdawaffe that AJAX loads the category list when you click on the "All Categories" tab.
#5
@
17 years ago
This doesn't degrade nicely with JS turned off. We'll try it in trunk and work the kinks out. Not ready for the 2.5 branch.
#6
@
17 years ago
Can we make, via a plugin or whatnot, some easy method of keeping the "All Categories" the default? I hate the most-used view and never use it.
Note: See
TracTickets for help on using
tickets.
(In [7669]) More efficient category and list JS from mdawaffe. fixes #6677 for trunk