[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:24:49 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           |  Resolution:
 Keywords:                   |     Focuses:  performance
-----------------------------+------------------------------

Comment (by Matthias Reuter):

 To keep the relative paths in the dashicons.css, here's a better version
 of the improvement

 {{{
 @font-face {
         font-family: dashicons;
     src: url(/wp-includes/fonts/dashicons.woff),
                 url(../fonts/dashicons.ttf) format("truetype"),
                 url(../fonts/dashicons.svg#dashicons) format("svg"),
                 url(../fonts/dashicons.eot);
         font-weight: normal;
         font-style: normal;
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42819#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list