https://www.fitsoul-fitbody.com/wp-content/themes/enfold/js/avia-snippet-site-preloader.js?ver=5.6.8
1(function($) 2{ 3 "use strict"; 4 5 // fix back forward cache issue: http://stackoverflow.com/questions/11979156/mobile-safari-back-button 6 $(window).on( "pageshow", function( event ) 7 { 8 if( event.originalEvent.persisted ) 9 { 10 avia_site_preloader(); 11 } 12 }); 13 14 $( function() 15 { 16 // site preloader script 17 avia_site_preloader(); 18 }); 19 20 21 function avia_site_preloader() 22 { 23 var win = $(window), 24 preloader_active = $('html.av-preloader-active'), 25 pre_wrap; 26 27 if( preloader_active.length ) 28 { 29 var hide = function() 30 { 31 pre_wrap.avia_animate( {opacity:0}, function() 32 { 33 preloader_active.removeClass( 'av-preloader-active' ); 34 }); 35 }; 36 37 pre_wrap = $( '.av-siteloader-wrap' ); 38 setTimeout( function() 39 { 40 $.avia_utilities.preload( { container: preloader_active, global_callback: hide } ); 41 42 //fallback 43 setTimeout( function() 44 { 45 if( preloader_active.is( '.av-preloader-active' ) ) 46 {Â 47 hide(); 48 $.avia_utilities.log( 'Hide Preloader (Fallback)' ); 49 } 50 51 }, 4000 ); 52 53 if( pre_wrap.is('.av-transition-enabled') ) 54 { 55 var comp = new RegExp(location.host), 56 exclude = " .no-transition, .mfp-iframe, .lightbox-added, a.avianolink, .grid-links-ajax a, #menu-item-search a, .wp-playlist-caption"; 57 58 preloader_active.on( 'click', 'a:not(' + exclude + ')', function(e) 59 { 60 if(!e.metaKey && !e.ctrlKey && !e.altKey && !e.shiftKey) 61 { 62 var link = this; 63 if( comp.test(link.href) && link.href.split('#')[0] != location.href.split('#')[0] && link.target == "") 64 { 65 if(link.href.indexOf('mailto:') == -1 && link.href.indexOf('add-to-cart=') == -1 ) 66 { 67 e.preventDefault(); 68 preloader_active.addClass( 'av-preloader-active av-preloader-reactive' ); 69 pre_wrap.avia_animate( {opacity:1}, function() 70 { 71 window.location = link.href; 72 }); 73 } 74 } 75 } 76 }); 77 } 78 79 }, 500 ); 80 } 81 } 82 83})(jQuery); 84 85 86 87
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.