0

I want to improve the loading speed of our pages, also based on the advice of Google.

So I want to use async or defer, so that javascript is not blocking the loading of the page.

I tried adding this to the javascript actions on our page.xml file, but that does break the loading of the javascript files on our shop.

<action method="addJs"><script>prototype/prototype.js</script><params>async</params></action>

How can achieve that javascript is loading after the entire page is loaded?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.