PageSourceSearch

https://www.cryptopunks.app/components/ls.attrchange.min.js

js cryptopunks.app collected 2026-10-03 21:11:32 UTC 2,962 bytes, 92 lines download raw bytes

1/*! lazysizes - v2.0.0-rc1 */
2!(function (a, b) {
3  "use strict";
4  if (a.addEventListener) {
5    var c = a.requestAnimationFrame || setTimeout,
6      d = function () {
7        var e,
8          f,
9          g,
10          h,
11          i = a.lazySizes,
12          j = i.cfg,
13          k = {
14            "data-bgset": 1,
15            "data-include": 1,
16            "data-poster": 1,
17            "data-bg": 1,
18            "data-script": 1,
19          },
20          l = "(\\s|^)(" + j.loadedClass,
21          m = b.documentElement,
22          n = function (a) {
23            c(function () {
24              (i.rC(a, j.loadedClass),
25                j.unloadedClass && i.rC(a, j.unloadedClass),
26                i.aC(a, j.lazyClass));
27            });
28          },
29          o = function (a) {
30            var b, c, d, e;
31            for (b = 0, c = a.length; c > b; b++)
32              ((d = a[b]),
33                (e = d.target),
34                e.getAttribute(d.attributeName) &&
35                  ("source" == e.localName &&
36                    e.parentNode &&
37                    (e = e.parentNode.querySelector("img")),
38                  e && l.test(e.className) && n(e)));
39          };
40        (j.unloadedClass && (l += "|" + j.unloadedClass),
41          (l += "|" + j.loadingClass + ")(\\s|$)"),
42          (l = new RegExp(l)),
43          (k[j.srcAttr] = 1),
44          (k[j.srcsetAttr] = 1),
45          a.MutationObserver
46            ? ((g = new MutationObserver(o)),
47              (e = function () {
48                h ||
49                  ((h = !0),
50                  g.observe(m, {
51                    subtree: !0,
52                    attributes: !0,
53                    attributeFilter: Object.keys(k),
54                  }));
55              }),
56              (f = function () {
57                h && ((h = !1), g.disconnect());
58              }))
59            : (m.addEventListener(
60                "DOMAttrModified",
61                (function () {
62                  var a,
63                    b = [],
64                    c = function () {
65                      (o(b), (b = []), (a = !1));
66                    };
67                  return function (d) {
68                    h &&
69                      k[d.attrName] &&
70                      d.newValue &&
71                      (b.push({ target: d.target, attributeName: d.attrName }),
72                      a || (setTimeout(c), (a = !0)));
73                  };
74                })(),
75                !0,
76              ),
77              (e = function () {
78                h = !0;
79              }),
80              (f = function () {
81                h = !1;
82              })),
83          addEventListener("lazybeforeunveil", f, !0),
84          addEventListener("lazybeforeunveil", e),
85          addEventListener("lazybeforesizes", f, !0),
86          addEventListener("lazybeforesizes", e),
87          e(),
88          removeEventListener("lazybeforeunveil", d));
89      };
90    addEventListener("lazybeforeunveil", d);
91  }
92})(window, document);

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.