PageSourceSearch

http://balamurali.me/js/preloadsc494.js

js balamurali.me collected 2026-09-25 22:36:22 UTC 4,119 bytes, 78 lines download raw bytes

1
2    (function() {
3      var cdnOrigin = "https://cdn.shopify.com";
4      var scripts = ["/cdn/shopifycloud/checkout-web/assets/c1/polyfills-legacy.CxAH3j_U.js","/cdn/shopifycloud/checkout-web/assets/c1/app-legacy.76UPHFNf.js","/cdn/shopifycloud/checkout-web/assets/c1/locale-en-legacy.B6-FeG6D.js","/cdn/shopifycloud/checkout-web/assets/c1/page-OnePage-legacy.CEO7cTZu.js","/cdn/shopifycloud/checkout-web/assets/c1/LocalizationExtensionField-legacy.DEZUgQO9.js","/cdn/shopifycloud/checkout-web/assets/c1/RememberMeDescriptionText-legacy.DIhDavvU.js","/cdn/shopifycloud/checkout-web/assets/c1/ShopPayOptInDisclaimer-legacy.C5etGRAR.js","/cdn/shopifycloud/checkout-web/assets/c1/PaymentButtons-legacy.CnmeFzxK.js","/cdn/shopifycloud/checkout-web/assets/c1/StockProblemsLineItemList-legacy.B34j8ze-.js","/cdn/shopifycloud/checkout-web/assets/c1/DeliveryMethodSelectorSection-legacy.BmMfEh8A.js","/cdn/shopifycloud/checkout-web/assets/c1/useEditorShopPayNavigation-legacy.C_IeuctI.js","/cdn/shopifycloud/checkout-web/assets/c1/VaultedPayment-legacy.C9gHFWIM.js","/cdn/shopifycloud/checkout-web/assets/c1/SeparatePaymentsNotice-legacy.mAA0opuQ.js","/cdn/shopifycloud/checkout-web/assets/c1/ShipmentBreakdown-legacy.DWWCHN07.js","/cdn/shopifycloud/checkout-web/assets/c1/MerchandiseModal-legacy.D0jo2kc6.js","/cdn/shopifycloud/checkout-web/assets/c1/StackedMerchandisePreview-legacy.BoDkCw64.js","/cdn/shopifycloud/checkout-web/assets/c1/component-ShopPayVerificationSwitch-legacy.BaU1dqBW.js","/cdn/shopifycloud/checkout-web/assets/c1/useSubscribeMessenger-legacy.y1zAxOlP.js","/cdn/shopifycloud/checkout-web/assets/c1/index-legacy.CNf1wTcT.js","/cdn/shopifycloud/checkout-web/assets/c1/PayButtonSection-legacy.I8h2ZypO.js"];
5      var styles = [];
6      var fontPreconnectUrls = [];
7      var fontPrefetchUrls = [];
8      var imgPrefetchUrls = ["https://cdn.shopify.com/s/files/1/0007/8151/6860/files/Bala_LogoArtwork_Black_x320.png?v=1647558974"];
9
10      function preconnect(url, callback) {
11        var link = document.createElement('link');
12        link.rel = 'dns-prefetch preconnect';
13        link.href = url;
14        link.crossOrigin = '';
15        link.onload = link.onerror = callback;
16        document.head.appendChild(link);
17      }
18
19      function preconnectAssets() {
20        var resources = [cdnOrigin].concat(fontPreconnectUrls);
21        var index = 0;
22        (function next() {
23          var res = resources[index++];
24          if (res) preconnect(res, next);
25        })();
26      }
27
28      function prefetch(url, as, callback) {
29        var link = document.createElement('link');
30        if (link.relList.supports('prefetch')) {
31          link.rel = 'prefetch';
32          link.fetchPriority = 'low';
33          link.as = as;
34          if (as === 'font') link.type = 'font/woff2';
35          link.href = url;
36          link.crossOrigin = '';
37          link.onload = link.onerror = callback;
38          document.head.appendChild(link);
39        } else {
40          var xhr = new XMLHttpRequest();
41          xhr.open('GET', url, true);
42          xhr.onloadend = callback;
43          xhr.send();
44        }
45      }
46
47      function prefetchAssets() {
48        var resources = [].concat(
49          scripts.map(function(url) { return [url, 'script']; }),
50          styles.map(function(url) { return [url, 'style']; }),
51          fontPrefetchUrls.map(function(url) { return [url, 'font']; }),
52          imgPrefetchUrls.map(function(url) { return [url, 'image']; })
53        );
54        var index = 0;
55        function run() {
56          var res = resources[index++];
57          if (res) prefetch(res[0], res[1], next);
58        }
59        var next = (self.requestIdleCallback || setTimeout).bind(self, run);
60        next();
61      }
62
63      function onLoaded() {
64        try {
65          if (parseFloat(navigator.connection.effectiveType) > 2 && !navigator.connection.saveData) {
66            preconnectAssets();
67            prefetchAssets();
68          }
69        } catch (e) {}
70      }
71
72      if (document.readyState === 'complete') {
73        onLoaded();
74      } else {
75        addEventListener('load', onLoaded);
76      }
77    })();
78  

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.