diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/js/dist/dom-ready.js --- a/wp/wp-includes/js/dist/dom-ready.js Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/js/dist/dom-ready.js Wed Sep 21 18:19:35 2022 +0200 @@ -82,12 +82,12 @@ /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 419); +/******/ return __webpack_require__(__webpack_require__.s = "2oG7"); /******/ }) /************************************************************************/ /******/ ({ -/***/ 419: +/***/ "2oG7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -124,6 +124,10 @@ * @return {void} */ function domReady(callback) { + if (typeof document === 'undefined') { + return; + } + if (document.readyState === 'complete' || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly. document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly. ) {