async function emsFetch(url , param){ try { var _param = ''; if(param){ _param = param; } var response = await fetch(url + '?' + _param); const resText = await response.text(); return resText; } catch (error) { console.log('Ems Fetch Error:' + url); } } (async function(){ let current_Script = document.currentScript; if(typeof jQuery === 'undefined'){ const jQueryTemp = await emsFetch('https://www41.easy-myshop.jp/ems/js/jquery-2.2.4.min.js'); eval(jQueryTemp); } (function($){ if(typeof favoriteFormFlg === "undefined"){ const favoriteJs = emsFetch('https://www41.easy-myshop.jp/ems/js/favorite.js'); favoriteJs.then(res => { eval(res); this.favoChange = favoChange; }); } current_Script.insertAdjacentHTML('afterend', ''); current_Script.insertAdjacentHTML('afterend', ''); }(jQuery)); var waitScript = await emsFetch('https://www41.easy-myshop.jp/ems/js/jquery.lazyload.js?v=2024r01.2404251030'); eval(waitScript); var waitScript = await emsFetch('https://www41.easy-myshop.jp/ems/js/swiper.js?v=2024r01.2404251030'); eval(waitScript); var waitScript = await emsFetch('https://bwear.easy-myshop.jp/c-relitem-js'); eval(waitScript); })();