Type
magento2-module
Move all javascripts to the footer on Magento 2 store.
magento2-module
OSL-3.0
None
None
None
None
None
composer require magefan/module-rocketjavascript
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
/* Use in browser console */
globalSrc = [];
jQuery('script').each(function(){
if (!jQuery(this).attr('src')) return;
var src = (jQuery(this).attr('src').replace('PATH_TO_JS', ''));
globalSrc.push(src)
})
console.log(JSON.stringify(globalSrc));
If you have any issues, please contact us then if you still need help, open a bug report in GitHub's issue tracker.
Please do not use Magento Marketplace's Reviews or (especially) the Q&A for support. There isn't a way for us to reply to reviews and the Q&A moderation is very slow.
The code is licensed under Open Software License ("OSL") v. 3.0.