[wp-trac] [WordPress Trac] #18314: Merge admin CSS files and remove duplicates

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 21 16:07:55 UTC 2011


#18314: Merge admin CSS files and remove duplicates
-------------------------+------------------
 Reporter:  azaozz       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.3
Component:  Performance  |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------

Old description:

> Looking through wp-admin/css we have large amount of stylesheets that
> aren't optimized neither for loading nor for maintenance/consistency.
>
> Generally we have two options: either to break our CSS into smaller
> chunks of dependent styles and load different amount on each screen or to
> "globalize" it all into wp-admin.css and wp-admin-rtl.css.
>
> The second option would be (quite?) better for faster loading. Currently
> we concatenate and compress the admin css but since the files are
> different for most screens, the concatenated file has to be downloaded
> each time. If all admin styles are in one file it will be cached by the
> browser after the first time (in memory) and all subsequent loads will be
> faster.

New description:

 Looking through wp-admin/css we have large amount of stylesheets that
 aren't optimized neither for loading nor for maintenance/consistency.

 Generally we have two options: either to break our CSS into smaller chunks
 of dependent styles and load different amount on each screen or to
 "globalize" it all into wp-admin.css and wp-admin-rtl.css.

 The second option would be (quite?) better for faster loading. Currently
 we concatenate and compress the admin css but since the files are
 different for most screens, the concatenated file has to be downloaded
 each time. If all admin styles are in one file it will be cached by the
 browser after the first time (in memory) and all subsequent loads will be
 faster.

 To do:
 - continue removing duplicate and nearly duplicate styles from wp-
 admin.css
 - after that's in good shape, do the same for wp-admin-rtl.css

 Please see [https://core.trac.wordpress.org/ticket/18314#comment:14
 comment:14]

--

Comment (by azaozz):

 There are still quite a few duplicates or nearly duplicates in wp-
 admin.css, All are welcome to help slim it down. The only thing we need to
 be careful about is to apply any uncommited patches to it before starting
 to hunt for duplicates. It's hard to merge conflicting css patches as each
 conflict has to be tested separately.

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


More information about the wp-trac mailing list