Skip to content

webnstack/module-rocketjavascript

Repository files navigation

Total Downloads Latest Stable Version

Magento2 Footer JavaScript

Magento2 Deferred JavaScript

Magento2 Optimized Bundle JavaScript

Configuration

  • To enable or disable extension please navigate to Magento 2 Admin Panel > Stores > Magefan Extensions > Rocket JavaScript

Requirements

  • Magento Community Edition 2.1.x-2.2.x or Magento Enterprise Edition 2.1.x-2.2.x

Installation

Get List Of Used JS On A Sigle Page

/* Use in browser console */
/* Replace PATH_TO_JS with a string of static content URL including language. E.g.
'https://domain.com/pub/static/version1549034518/frontend/Magento/luma/en_US/'
*/
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);

Support

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.

License

The code is licensed under Open Software License ("OSL") v. 3.0.

Other Magento 2 Extensions by Magefan

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%