Magefan Rocket JavaScript Extension for Magento 2
- Rocket JavaScript module allows you to move all javascript tags to the footer of the storefront page on your Magento 2 Store.
- Optimize JavaScript Bundle
- To enable or disable extension please navigate to Magento 2 Admin Panel > Stores > Magefan Extensions > Rocket JavaScript
- Magento Community Edition 2.1.x-2.2.x or Magento Enterprise Edition 2.1.x-2.2.x
- Open command line
- Using command "cd" navigate to your magento2 root directory
- Run commands:
composer require magefan/module-rocketjavascript
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
- Install the Magefan Community Extension first
- Download ZIP Archive
- Extract files
- In your Magento 2 root directory create folder app/code/Magefan/Blog
- Copy files and folders from archive to that folder
- In command line, using "cd", navigate to your Magento 2 root directory
- Run commands:
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');
if (src.indexOf('https://' + window.location.hostname) != -1 || src.indexOf('http://' + window.location.hostname) != -1) {
var src = (src.replace(PATH_TO_JS, ''));
globalSrc += "\n" + src;
}
})
console.log(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.