[wp-trac] [WordPress Trac] #61995: Remove old IE9 code from svg-painter.js

WordPress Trac noreply at wordpress.org
Thu Sep 5 19:07:05 UTC 2024


#61995: Remove old IE9 code from svg-painter.js
-------------------------------------+-------------------------
 Reporter:  TobiasBg                 |      Owner:  (none)
     Type:  enhancement              |     Status:  new
 Priority:  normal                   |  Milestone:  6.7
Component:  Administration           |    Version:
 Severity:  normal                   |   Keywords:  needs-patch
  Focuses:  javascript, performance  |
-------------------------------------+-------------------------
 wp.svgPainter is a JavaScript function that adjusts the `fill` color
 property and similar of SVG background images in the WordPress admin menu,
 based on the current admin color scheme.

 It is enqueued on every admin page load.

 About half of the file's code is a back-compat polyfill of base64
 functions for IE9.

 WordPress no longer supports IE9 and all modern browsers come with these
 functions.

 The polyfill should be removed to save some kilobytes on every page load
 of every WordPress admin page visit.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61995>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list