PageSourceSearch

https://www.neildiamond.com/wp-content/plugins/umg-grand-royal-the…/js/shortcodes/preloader.js?ver=3.5.8

js neildiamond.com collected 2026-09-24 09:15:38 UTC 1,327 bytes, 43 lines download raw bytes

1(function ($) {
2
3    $(document).ready(function(){
4        
5        listen_for_top_content_loaded();
6
7        //remove loader after 10 seconds of loading
8        setTimeout(init_after_content_load, 10000);
9
10    });
11
12    //fired after all content apart from external resources is loaded (fires regardless after 10 second limit)
13    var contentLoaded = false;
14
15    function init_after_content_load() {
16        if (contentLoaded) return;
17
18        contentLoaded = true;
19
20        $('#umggr-preloader').fadeOut(333, function(){
21            $('#page').css('visibility', 'visible');
22        });
23    };
24
25    //wait for content from the top of the site to load before hiding loader
26    function listen_for_top_content_loaded() {
27
28        // Set a default length of time for the preloader to show (2 seconds)
29        var setPreloaderDelay = 2000;
30            
31        // Get the pre-loader delay length setting
32        if($('#umggr-preloader').length) {
33            setPreloaderDelay = $('#umggr-preloader').data('load-delay') * 1000; // value will be in seconds, convert to milliseconds
34        }
35
36        // Delay the preloader from being hidden for set number of seconds, regardless if the page has loaded or not
37        setTimeout(function () {
38            init_after_content_load();
39        }, setPreloaderDelay);
40
41    }
42
43})(jQuery);

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.