1var lottiePlayerLoaded = false; 2 3jQuery.cachedScript = function( url, options ) { 4 5 options = $.extend( options || {}, { 6 dataType: "script", 7 cache: true, 8 url: url 9 }); 10 11 return jQuery.ajax( options ); 12}; 13 14function loadElementorLottiePlayer() { 15 16 if(!lottiePlayerLoaded){ 17 $.cachedScript( "https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js" ).done(function( script, textStatus ) { 18 console.log('Lottie player loaded'); 19 $.cachedScript( "https://unpkg.com/@lottiefiles/[email protected]/dist/lottie-interactivity.min.js" ).done(function( script, textStatus ) { 20 console.log('Lottie player loaded2'); 21 var event = new CustomEvent("lottieLoaded"); 22 document.dispatchEvent(event); 23 }); 24 }); 25 26 lottiePlayerLoaded = true; 27 } 28} 29 30
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.