[wp-trac] [WordPress Trac] #32109: Error in emoji

WordPress Trac noreply at wordpress.org
Sat Apr 25 16:10:00 UTC 2015


#32109: Error in emoji
--------------------------+------------------------------
 Reporter:  germozy       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------

Comment (by azaozz):

 32109.1.diff changes all IE < 11 to wait for body.onload which can fire
 much later if there is a slow loading image, etc.

 A better solution seems to be to use `DOMContentLoaded` which is supported
 everywhere except IE < 9. Then keep `document.readyState === 'complete'`
 for IE8. For this we will need to set a var in case `DOMContentLoaded`
 fires before twemoji.js is loaded (unlikely but possible).

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


More information about the wp-trac mailing list