Magento/PageSpeed: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
K (http://www.webpagetest.org)
K (bug fix)
Zeile 1: Zeile 1:
https://developers.google.com/speed/pagespeed/insights/
https://developers.google.com/speed/pagespeed/insights/
http://www.webpagetest.org
http://www.webpagetest.org




in app/design/frontend/base/default/layout/
in app/design/frontend/base/default/layout/
<syntaxhighlight lang="bash">
et_advancedcompare.xml
et_advancedcompare.xml
googleanalyticsplus.xml
googleanalyticsplus.xml
page.xml
page.xml
</syntaxhighlight>


add <params>async</params> to addJS
add <params>async</params> to addJS
'''WARNING'''
Do NOT add 'async' to
<syntaxhighlight lang="php">
<action method="addJs"><script>prototype/prototype.js</script></action>
...
<action method="addJs"><script>prototype/validation.js</script></action>
..
<action method="addJs"><script>varien/js.js</script></action>
<action method="addJs"><script>varien/form.js</script></action>
</syntaxhighlight>
or add to cart will not work anymore (TypeError: productAddToCartForm is undefined)


see http://stackoverflow.com/questions/28658063/html-script-async-attribute-in-magento
see http://stackoverflow.com/questions/28658063/html-script-async-attribute-in-magento


[[Kategorie:WWW]]
[[Kategorie:WWW]]

Version vom 19. November 2015, 23:24 Uhr

https://developers.google.com/speed/pagespeed/insights/

http://www.webpagetest.org


in app/design/frontend/base/default/layout/

et_advancedcompare.xml
googleanalyticsplus.xml
page.xml

add <params>async</params> to addJS

WARNING Do NOT add 'async' to

<action method="addJs"><script>prototype/prototype.js</script></action>
...
<action method="addJs"><script>prototype/validation.js</script></action>
..
<action method="addJs"><script>varien/js.js</script></action>
<action method="addJs"><script>varien/form.js</script></action>

or add to cart will not work anymore (TypeError: productAddToCartForm is undefined)


see http://stackoverflow.com/questions/28658063/html-script-async-attribute-in-magento