File: /www/wwwroot/www.waciwang.com/wp-content/plugins/gutenberg/build/scripts/dom-ready/index.js.map
{
"version": 3,
"sources": ["../../../packages/dom-ready/src/index.ts"],
"sourcesContent": ["/**\n * Specify a function to execute when the DOM is fully loaded.\n *\n * @param callback A function to execute after the DOM is ready.\n *\n * @example\n * ```js\n * import domReady from '@wordpress/dom-ready';\n *\n * domReady( function() {\n * \t//do something after DOM loads.\n * } );\n * ```\n */\nexport default function domReady( callback: VoidFunction ) {\n\tif ( typeof document === 'undefined' ) {\n\t\treturn;\n\t}\n\n\tif (\n\t\tdocument.readyState === 'complete' || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.\n\t\tdocument.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.\n\t) {\n\t\treturn void callback();\n\t}\n\n\t// DOMContentLoaded has not fired yet, delay callback until then.\n\tdocument.addEventListener( 'DOMContentLoaded', callback );\n}\n"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAce,WAAR,SAA2B,UAAyB;AAC1D,QAAK,OAAO,aAAa,aAAc;AACtC;IACD;AAEA,QACC,SAAS,eAAe;IACxB,SAAS,eAAe,eACvB;AACD,aAAO,KAAK,SAAS;IACtB;AAGA,aAAS,iBAAkB,oBAAoB,QAAS;EACzD;",
"names": []
}