Shopify 速度页面完全破解?

shopify speed page fully hack?

提问人:Naim Arafat 提问时间:11/17/2023 更新时间:11/17/2023 访问量:26

问:

<script type="text/javascript"> const observer = new MutationObserver(e => { e.forEach(({ addedNodes: e }) => { e.forEach(e => { 1 === e.nodeType && "SCRIPT" === e.tagName && (e.innerHTML.includes("asyncLoad") && (e.innerHTML = e.innerHTML.replace("if(window.attachEvent)", "document.addEventListener('asyncLazyLoad',function(event){asyncLoad();});if(window.attachEvent)").replaceAll(", asyncLoad", ", function(){}")), e.innerHTML.includes("PreviewBarInjector") && (e.innerHTML = e.innerHTML.replace("DOMContentLoaded", "asyncLazyLoad")), (e.className == 'analytics') && (e.type = 'text/lazyload'),(e.src.includes("assets/storefront/features")||e.src.includes("assets/shopify_pay")||e.src.includes("connect.facebook.net"))&&(e.setAttribute("data-src", e.src), e.removeAttribute("src")))})})});observer.observe(document.documentElement,{childList:!0,subtree:!0})</script>{{ "//cdn.shopify.com/s/files/1/0603/7530/2276/t/1/assets/optimizers.js" | script_tag}}

我确实尝试过在 head 标签的 theme.liquid 文件中使用此脚本,在标题标签的内容之后。但这对我们的商店没有帮助。如何在Shopify商店中使用此代码?

性能 Shopify PageSpeed-Insights

评论


答: 暂无答案