[wp-trac] [WordPress Trac] #42819: dashicons css: load woff file instead of inline embed base64 code in dashicons.css
WordPress Trac
noreply at wordpress.org
Thu Dec 7 02:22:29 UTC 2017
#42819: dashicons css: load woff file instead of inline embed base64 code in
dashicons.css
-----------------------------+-----------------------------
Reporter: Matthias Reuter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.9.1
Severity: normal | Keywords:
Focuses: performance |
-----------------------------+-----------------------------
Currently, the woff code is embed into the /wp-includes/css/dashicons.css
aswell as /wp-includes/css/dashicons.min.css as base64 code.
Due to performance purposes, the code should be changed to:
{{{
@font-face {
font-family: dashicons;
src: url(/wp-includes/fonts/dashicons.woff),
url(/wp-includes/fonts/dashicons.ttf) format("truetype"),
url(/wp-includes/fonts/dashicons.svg#dashicons)
format("svg"),
url(/wp-includes/fonts/dashicons.eot);
font-weight: normal;
font-style: normal;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42819>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list