[wp-trac] [WordPress Trac] #42847: Twenty Seventeen: Social Menu creates code bloat

WordPress Trac noreply at wordpress.org
Mon Dec 11 04:18:41 UTC 2017


#42847: Twenty Seventeen: Social Menu creates code bloat
---------------------------+------------------------------
 Reporter:  madriverweb    |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  4.8.3
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by iCaleb):

 Looked into this a bit, and seems the SVG defs are always loaded, not only
 when a social menu is being used. This is because the svg icons are used
 for more than just social, a couple of examples are the search widget
 submit button and the left/right archive page arrows.

 Reading up on `<defs>` a bit, this might not really be an issue.

 > Objects created inside a <defs> element are not rendered immediately;
 instead, think of them as templates or macros created for future use.

 Source: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs

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


More information about the wp-trac mailing list