PageSourceSearch

https://jupitergem.com/static/version1790528429/frontend/Swissup/b…/en_US/Swissup_Breeze/js/core/lazy.js

js jupitergem.com collected 2026-10-02 17:50:26 UTC 1,206 bytes, 49 lines download raw bytes

1(function () {
2    'use strict';
3
4    var interacted = false,
5        callbacks = [];
6
7    $.lazy = function (callback) {
8        if (interacted) {
9            return window.setTimeout(callback, 0);
10        }
11        callbacks.push(callback);
12    };
13
14    function process(selector) {
15        $.lazy(() => {
16            $(selector).each(function () {
17                this.parentNode.insertBefore(
18                    $(this).clone().removeAttr('type').get(0),
19                    this
20                );
21            });
22        });
23    }
24
25    $(() => process('head script[type=lazy]'));
26    $(document).on('breeze:load', () => {
27        process('body script[type=lazy]');
28
29        $(document).one([
30            'touchstart', 'scroll', 'mousemove', 'click', 'mousewheel', 'keyup', 'wakeup'
31        ].join('.lazy '), (e) => {
32            if (e.namespace !== undefined && e.type !== 'wakeup') {
33                return;
34            }
35
36            $('body').removeClass('breeze-inactive');
37
38            if (interacted) {
39                return;
40            }
41
42            interacted = true;
43
44            while (callbacks.length > 0) {
45                callbacks.shift()();
46            }
47        });
48    });
49})();

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.