'); // else { // $acs('#header .navbar .navbar-header .cart-popup').before(mlvedasw); // $acs('#header .navbar .navbar-header .pick_currency').addClass('visible-ms visible-xs pull-right navbar-cart'); // } '); //document.write(''); var loadScript = (src) => { return new Promise((resolve, reject) => { const el = document.createElement('script'); el.src = src; el.onload = resolve; el.onerror = reject; document.head.appendChild(el); }); }; var performAjax = async () => { try { await loadScript( '//mlveda-shopifyapps.s3.amazonaws.com/multiCurrencyPricing/js/currencies.js?rnd=' + Math.floor(Math.random() * 10000000000 + 1), ); window.ACSCurrency = Currency; await loadScript( '/apps/MultiCurrency/New/jquery.currencies.min.js?rnd=' + Math.floor(Math.random() * 10000000000 + 1), ); } catch (error) { console.log(error); } }; performAjax();