[wp-trac] [WordPress Trac] #38377: Empty favicons cause extra HTTP requests to customizer when history.replaceState() used

WordPress Trac noreply at wordpress.org
Thu Oct 20 06:42:41 UTC 2016


#38377: Empty favicons cause extra HTTP requests to customizer when
history.replaceState() used
--------------------------+-----------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  Customize     |    Version:  4.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 In Chrome, at least, when sing `history.replaceState()` an HTTP request to
 fetch the favicon is made, of some reason. When there is no site icon
 specified in WP, then `wp_site_icon()` outputs the `link` tags but with
 empty `href`. Since an empty `href` resolves to the current URL, this
 means in the customizer every time `history.replaceState()` is called an
 HTTP request is made back to fetch `customize.php` over and over again.
 This will slam the server in the case of #28536 where `replaceState` is
 used to update the URL to match the previewed URL and the focused
 panel/section/control.

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


More information about the wp-trac mailing list