[wp-trac] [WordPress Trac] #46003: Improve toobar CSS
WordPress Trac
noreply at wordpress.org
Wed Jan 16 10:42:03 UTC 2019
#46003: Improve toobar CSS
-------------------------+-----------------------------
Reporter: swissspidy | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
The admin toolbar has been around for years and has been iterated on many
times. Its [https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/css/admin-bar.css?rev=44544 CSS file] is now over 1000 lines long
and weighs 24 KB. Even minified it's still over 20 KB, which I think is
way too much. Given that the admin bar is loaded most of the time for many
users, this just slows things down unnecessarily.
I believe there's an opportunity to clean up the CSS file, get rid of
legacy selectors targeting things like IE 7 and IE 8, and perhaps even
make it DRY by leveraging Sass.
It should be possible to reduce the size of the admin bar CSS without
reducing functionality or usability.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46003>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list