PageSourceSearch

https://www.jeserie.org/sources/js/lazy.js?1729274411

js jeserie.org collected 2026-10-02 07:40:30 UTC 1,170 bytes, 39 lines download raw bytes

1jQuery_defer(function () {
2
3    // does nothing here but is cool to have
4    function getScripts(scripts, callback = false) {
5        var progress = 0;
6        scripts.forEach(function (script) {
7            $.getScript(script, function () {
8                if (++progress == scripts.length && callback) callback();
9            });
10        });
11    }
12
13    // gets the lazy load scripts and runs callback afterwords
14    function get_lazy_scripts(callback) {
15        $.getScript('//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery.lazy.min.js', function() {
16            $.getScript('//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery.lazy.plugins.min.js', function() {
17                callback();
18            });
19        });
20    }
21
22    // the lazy load
23    function do_lazy_load() {
24        $('.lazy').Lazy({
25            effect:'fadeIn',
26            effectTime:500,
27            threshold:99999,
28            // visibleOnly:true,
29            onError:function (element) {
30                console.log('error loading ' + element.data('src'));
31            }
32        });
33    }
34
35    $(document).ready(function () {
36        get_lazy_scripts(do_lazy_load);
37    });
38
39});

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.