Changeset 31898
- Timestamp:
- 03/26/2015 02:39:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-emoji.js
r31875 r31898 31 31 replaceEmoji = false, 32 32 33 isIE8 = window.navigator.userAgent.indexOf( 'IE 8' ) !== -1, 34 33 35 // Private 34 36 twemoji, timer, … … 47 49 } 48 50 49 // Still waiting. 51 // Still waiting. 50 52 window.clearTimeout( timer ); 51 53 timer = window.setTimeout( load, 50 ); … … 132 134 // Load when the readyState changes to 'interactive', not 'complete'. 133 135 function onLoad() { 134 if ( 'interactive' === document.readyState) {136 if ( ( ! isIE8 && 'interactive' === document.readyState ) || ( isIE8 && 'complete' === document.readyState ) ) { 135 137 load(); 136 138 } … … 145 147 replaceEmoji = ! supportsEmoji || ! supportsFlagEmoji; 146 148 147 if ( 'loading' == document.readyState) {149 if ( ( ! isIE8 && 'loading' === document.readyState ) || ( isIE8 && 'complete' !== document.readyState ) ) { 148 150 if ( document.addEventListener ) { 149 151 document.addEventListener( 'readystatechange', onLoad, false );
Note: See TracChangeset
for help on using the changeset viewer.