1define(['jquery'], async function ($) { 2 'use strict'; 3 4 var scripts = $('script[type="breeze/async-js"]').get().map(script => script.src), 5 chunks = _.chunk(scripts, Math.ceil(scripts.length / 3)), 6 requiredCopy = window.required.slice(); 7 8 await new Promise($.rafraf); 9 10 // process inline scripts with resolved dependencies (scroll reveal) 11 window.required = []; 12 requiredCopy.forEach(args => { 13 if (args[0].every?.(arg => $.breezemap.__has(arg)) && typeof args[1] === 'function') { 14 try { 15 require(...args); 16 return; 17 } catch (e) {} 18 } 19 window.required.push(args); 20 }); 21 22 // load async scripts 23 for (let chunk of chunks) { 24 await Promise.all(chunk.map($.preloadScript)); 25 for (let script of chunk) { 26 await $.loadScript(script); 27 } 28 await $.sleep(0); 29 } 30 31 // process inline scripts 32 require.ready = true; 33 window.required.map(args => setTimeout(() => { 34 require(...args); 35 })); 36 window.required = []; 37});
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.