PageSourceSearch

https://www.climatepolicyinitiative.org/wp-includes/js/dist/dom-ready.js?ver=3fe927cab37bf38d6a23

js climatepolicyinitiative.org collected 2026-10-02 02:24:24 UTC 1,571 bytes, 42 lines download raw bytes

1(function() {
2"use strict";
3var wp;
4(wp ||= {}).domReady = (() => {
5  var __defProp = Object.defineProperty;
6  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7  var __getOwnPropNames = Object.getOwnPropertyNames;
8  var __hasOwnProp = Object.prototype.hasOwnProperty;
9  var __export = (target, all) => {
10    for (var name in all)
11      __defProp(target, name, { get: all[name], enumerable: true });
12  };
13  var __copyProps = (to, from, except, desc) => {
14    if (from && typeof from === "object" || typeof from === "function") {
15      for (let key of __getOwnPropNames(from))
16        if (!__hasOwnProp.call(to, key) && key !== except)
17          __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18    }
19    return to;
20  };
21  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
23  // packages/dom-ready/build-module/index.mjs
24  var index_exports = {};
25  __export(index_exports, {
26    default: () => domReady
27  });
28  function domReady(callback) {
29    if (typeof document === "undefined") {
30      return;
31    }
32    if (document.readyState === "complete" || // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.
33    document.readyState === "interactive") {
34      return void callback();
35    }
36    document.addEventListener("DOMContentLoaded", callback);
37  }
38  return __toCommonJS(index_exports);
39})();
40if (typeof wp.domReady === 'object' && wp.domReady.default) { wp.domReady = wp.domReady.default; }
41(window.wp ||= {}).domReady = wp.domReady;
42})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.