").appendTo("head"); mlvedaFlagCalled = true; if(typeof ACSCurrency !== "undefined" && typeof ACSCurrency.moneyFormats !== "undefined") { mlvedaload(); } } //mlvedaload(); }, error: function(xhr, textStatus, errorThrown) { $m("").appendTo("head"); mlvedaFlagCalled = true; if(typeof ACSCurrency !== "undefined" && typeof ACSCurrency.moneyFormats !== "undefined") { mlvedaload(); } } }); } checkShopifyFormatMoney(); /*if($){ $(document).ajaxComplete(function(event, xhr, settings) { if(settings.url.indexOf("?page=")!=-1 || settings.url.indexOf("search?")!=-1 ) { $m("").appendTo("head"); checkShopifyFormatMoney(); } }); }*/ (function () { const send = XMLHttpRequest.prototype.send; XMLHttpRequest.prototype.send = function() { this.addEventListener('load', function() { // console.log('global handler', this) if("undefined" != typeof this._url && (this._url.indexOf("?page=")!=-1 || this._url.indexOf("recommendations")!=-1 || this._url.indexOf("search")!=-1 )) { $m("").appendTo("head"); checkShopifyFormatMoney(); } // add your global handler here }) return send.apply(this, arguments) } })();