[wp-trac] [WordPress Trac] #37817: Emoji code not loaded responsibly

WordPress Trac noreply at wordpress.org
Mon Oct 10 12:30:26 UTC 2016


#37817: Emoji code not loaded responsibly
---------------------------+--------------------------
 Reporter:  superpoincare  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  4.7
Component:  Emoji          |     Version:  4.6
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+--------------------------

Comment (by superpoincare):

 Good points, pento.

 Peter, good idea about creating canvas once. I think adding defer won't do
 anything because from what I see in the code, the script is added after
 DOMContentLoaded. I think defer just executes before the DOMContentLoaded
 event. So by the time a script element has been created, the
 DOMContentLoaded is already past. So the behaviour should be the same
 either way (with or without defer).

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


More information about the wp-trac mailing list