[wp-trac] [WordPress Trac] #58870: Delay loading comment-reply script with async loading strategy

WordPress Trac noreply at wordpress.org
Fri Jul 21 17:35:28 UTC 2023


#58870: Delay loading comment-reply script with async loading strategy
-------------------------+--------------------------------------
 Reporter:  westonruter  |       Owner:  westonruter
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  6.4
Component:  Comments     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  javascript, performance
-------------------------+--------------------------------------

Comment (by westonruter):

 Replying to [comment:4 sergiomdgomes]:
 > then **the best solution seems an `async` script in the footer**.
 >
 > If the script needs to live in the `<head>` for whatever reason,
 however, then I'd argue that the top priority is to ensure that first
 render isn't delayed, in which case our only reliable option is `defer`.
 >
 > Does this reasoning make sense, @westonruter? Is there something I
 missed?

 Yes, I think that summarizes the situation well!

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


More information about the wp-trac mailing list