Timeline for Magento 2: move the javascript to the end of the body
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Jan 10, 2022 at 13:47 | history | suggested | Zudian | CC BY-SA 4.0 |
Fix syntax error causing frontend php error
|
Jan 10, 2022 at 11:36 | review | Suggested edits | |||
S Jan 10, 2022 at 13:47 | |||||
S May 27, 2020 at 3:57 | history | suggested | Pierre Gauthier | CC BY-SA 4.0 |
If you change juste this line, the js will be inserted before the close tag of the body, and the html will be valid
|
May 26, 2020 at 13:37 | review | Suggested edits | |||
S May 27, 2020 at 3:57 | |||||
Feb 27, 2018 at 5:35 | comment | added | Pratik | This code working perfectly could you please share your issue in more details. | |
Feb 26, 2018 at 22:21 | comment | added | codestr | I'm getting an error of "Undefined index: id in /var/www/html/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 59" when attempting this solution. I think it has something to do with the tab ID's in system.xml, but am not 100% sure. Any suggestions? | |
Oct 28, 2017 at 1:31 | comment | added | dawhoo | This works very well. Only oddness, on product page, Google says the .js is not deferred, but viewing source shows code is deferred. Thank you very much, has reduced load to 1.8s according to gmetrix and a 95 rating | |
Oct 4, 2016 at 11:24 | history | answered | Pratik | CC BY-SA 3.0 |