PageSourceSearch

https://proparcel.com/static/js/initialization/boot_guard.js

js proparcel.com collected 2026-10-02 01:40:38 UTC 1,858 bytes, 49 lines download raw bytes

1(function(){
2  function isQueryActive(){
3    return window.__ppUseAnimatedLoader === true;
4  }
5
6  function hideLoaderSafely(){
7      if (isQueryActive()) return;
8      if (window.proParcelApp && typeof window.proParcelApp.hideLoading === 'function') {
9        window.proParcelApp.hideLoading();
10      }
11    try { if (typeof window.hideLoading === 'function') window.hideLoading(); } catch(_){}
12    try { const el=document.getElementById('loading-overlay'); if(el) el.style.display='none'; } catch(_){}
13    try { const c=document.getElementById('loading-container'); if(c) c.style.display='none'; } catch(_){}
14    try { const ov=document.getElementById('pp-loader-overlay'); if(ov){ ov.classList.add('pp-loader-hidden'); ov.style.display='none'; } } catch(_){}
15    try { const bg=document.getElementById('pp-loader-bg3d'); if(bg) bg.style.display='none'; } catch(_){}
16  }
17
18  let waitMapAttempts = 0;
19  const MAX_WAIT_MAP_ATTEMPTS = 200;
20
21  function attachMapLoadHide(){
22      const map = window.mapManager && window.mapManager.getCurrentMap && window.mapManager.getCurrentMap();
23      if (map && typeof map.on === 'function') {
24        map.once('load', () => { try { hideLoaderSafely(); } catch(_){} });
25        map.on('style.load', () => { try { setTimeout(hideLoaderSafely, 0); } catch(_){} });
26        return true;
27      }
28    return false;
29  }
30
31  (function waitMap(){
32    waitMapAttempts += 1;
33    if (!attachMapLoadHide()) {
34      if (waitMapAttempts >= MAX_WAIT_MAP_ATTEMPTS) {
35        try { hideLoaderSafely(); } catch(_){}
36        return;
37      }
38      setTimeout(waitMap, 250);
39    }
40  })();
41
42  if (document.readyState === 'loading') {
43    document.addEventListener('DOMContentLoaded', function(){ setTimeout(hideLoaderSafely, 1200); });
44  } else {
45    setTimeout(hideLoaderSafely, 1200);
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.