<script> tags that are in the
Another possible way to action this is to add the
async="true" attribute to every
<script> tag. The drawback here will mean you will have to update every single template file that has a script tag. Which is far from ideal.
<head> or throughout the
However, Tom Robertshaw created this module which does exactly that: https://github.com/bobbyshaw/magento-footer-js
The way this works is by running a set of a regular expressions against the result and moves all
- Try out Tom Robertshaw's module to move all js to the footer: https://github.com/bobbyshaw/magento-footer-js