WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32109, comment 4


Ignore:
Timestamp:
04/25/2015 05:01:29 PM (6 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32109, comment 4

    initial v1  
    1132109.1.diff changes all IE < 11 to wait for body.onload which can fire much later if there is a slow loading image, etc.
    22
    3 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).
     3A 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 wp-emoji.js is loaded.