[wp-trac] [WordPress Trac] #37788: dns-prefetch s.w.org conditionally via javascript

WordPress Trac noreply at wordpress.org
Wed Jun 7 05:54:00 UTC 2023


#37788: dns-prefetch s.w.org conditionally via javascript
---------------------------+------------------------------
 Reporter:  superpoincare  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Emoji          |     Version:  4.6
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  performance
---------------------------+------------------------------

Comment (by westonruter):

 Replying to [comment:4 westonruter]:
 > We should consider doing more detection for whether to print emoji
 detection script as well. Not only is the `dns-prefetch` to `s.w.org`
 potentially a wasted connection, if a page lacks any emoji then the emoji
 detection script causes a long task.
 >
 > For example, at https://pento.net/2021/01/21/wordpress-importers-free-
 as-in-speech/ see the above screenshot for the long task that
 `print_emoji_detection_script()` causes. If this script were removed,
 ~90ms could be shaved off of page load time.

 I've opened #58472 to specifically address the long task.

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


More information about the wp-trac mailing list