Skip to content

Commit e14f059

Browse files
authored
Update README.md
1 parent d9516c7 commit e14f059

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ php bin/magento setup:di:compile
3535
php bin/magento setup:static-content:deploy
3636
```
3737

38+
## GET LIST OF USED JS
39+
```
40+
/* Use in browser console */
41+
globalSrc = [];
42+
jQuery('script').each(function(){
43+
if (!jQuery(this).attr('src')) return;
44+
var src = (jQuery(this).attr('src').replace('PATH_TO_JS', ''));
45+
globalSrc.push(src)
46+
})
47+
console.log(JSON.stringify(globalSrc));
48+
```
49+
3850
## Support
3951
If you have any issues, please [contact us](mailto:support@magefan.com)
4052
then if you still need help, open a bug report in GitHub's

0 commit comments

Comments
 (0)