PageSourceSearch

https://wingify.com/blog/wp-content/cache/autoptimize/3/js/autopti…921da99fea3688f23eb4ea4ed.js?ver=1790863400

js wingify.com collected 2026-10-02 14:59:02 UTC 4,179 bytes, 23 lines download raw bytes

1window.vwo=window.vwo||{};Object.assign(window.vwo,{getCookies:function(name){const nameEQ=name+"=";const ca=document.cookie.split(";");for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)===" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)===0)return c.substring(nameEQ.length,c.length);}
2return"";},setCookies:function(cookieName,cookieValue,daysToExpire){const d=new Date();d.setTime(d.getTime()+daysToExpire*24*60*60*1000);const expires="expires="+d.toUTCString();document.cookie=cookieName+"="+cookieValue+";"+expires+";path=/";},sanitizeHash:function(hash){const re=/[^a-z0-9#-]/gi;return hash.split(re)[0];},isMobile:function(){return window.innerWidth<=1023;},extractDomain:function(email){return email.substring(email.lastIndexOf("@")+1).toLowerCase();},unique:function(arr){const a=arr.concat();for(let i=0;i<a.length;++i){for(let j=i+1;j<a.length;++j){if(a[i]===a[j])a.splice(j--,1);}}
3return a;},refreshRestNonce:(function(){if(new URLSearchParams(window.location.search).has("localdebug")){return;}
4function applyNonce(nonce){if(!nonce){return;}
5window.WP=window.WP||{};window.WP.NONCE=nonce;}
6function nonceAjaxUrl(){if(window.WP&&window.WP.adminAjax){return window.WP.adminAjax;}
7if(window.siteVar&&window.siteVar.ajaxUrl){return window.siteVar.ajaxUrl;}
8return"/wp-admin/admin-ajax.php";}
9function fetchNonceFromAjax(){const body=new URLSearchParams();body.set("action","vwo_rest_nonce");return fetch(nonceAjaxUrl(),{method:"POST",credentials:"same-origin",cache:"no-store",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",},body:body.toString(),}).then(function(response){if(!response.ok){throw new Error("nonce ajax failed");}
10return response.json();}).then(function(data){const nonce=data&&data.success&&data.data&&data.data.nonce;if(!nonce){throw new Error("nonce ajax empty");}
11applyNonce(nonce);return data;});}
12function fetchNonceFromRest(){return fetch("/wp-json/action/rest-nonce",{method:"POST",credentials:"same-origin",cache:"no-store",headers:{Accept:"application/json",},}).then(function(response){if(!response.ok){throw new Error("nonce rest failed");}
13return response.json();}).then(function(data){const nonce=data&&data.nonce;if(!nonce){throw new Error("nonce rest empty");}
14applyNonce(nonce);return data;});}
15return function(){if(window.vwo._restNonceRefresh){return window.vwo._restNonceRefresh;}
16window.vwo._restNonceRefresh=fetchNonceFromAjax().catch(function(){return fetchNonceFromRest();}).catch(function(){return undefined;}).finally(function(){window.vwo._restNonceRefresh=null;});return window.vwo._restNonceRefresh;};})(),debounce:function(func,delay){let timeoutID;return function(){const context=this;const args=arguments;if(timeoutID){clearTimeout(timeoutID);}
17timeoutID=setTimeout(function(){func.apply(context,args);},delay);};},isLocalStorageEnabled:function(){try{if("localStorage"in window&&window["localStorage"]!==null){return true;}else{return false;}}catch(e){return false;}},pushByOrderId:function(array,item,orderId){let a=array.slice();let b;if(!orderId||a.length<orderId){a.push(item);}else if(orderId===0||orderId===1){b=[item];a=b.concat(a);}else{const firstPiece=a.slice(0,orderId-1);const secondPiece=a.slice(orderId-1,a.length);b=[item];a=firstPiece.concat(b).concat(secondPiece);}
18return a;},});class WingifyWebsiteTracking{static initialized=false;static pageLoadTs=Date.now();static pageHeading="";static init(){if(WingifyWebsiteTracking.initialized){return;}
19WingifyWebsiteTracking.initialized=true;window.dataLayer=window.dataLayer||[];WingifyWebsiteTracking.pageLoadTs=Date.now();WingifyWebsiteTracking.pageHeading=WingifyWebsiteTracking.getPageHeading();WingifyWebsiteTracking.push("web_gtm_page_view");}
20static getPageHeading(){const heading=document.querySelector("h1");if(!heading){return"";}
21return heading.textContent.trim();}
22static push(eventName,params){const payload={event:eventName,...params,web_dtl_page_h1_text:WingifyWebsiteTracking.pageHeading,web_dtl_timestamp:new Date().toISOString(),web_dtl_duration_ms:Date.now()-WingifyWebsiteTracking.pageLoadTs,};window.dataLayer.push(payload);return payload;}}
23WingifyWebsiteTracking.init();

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.