Created
September 9, 2021 19:37
-
-
Save jkmartindale/99110e34297547479bb0d0ae74f5ef58 to your computer and use it in GitHub Desktop.
Browser console snippet that Closure Compiler expands to larger than the original size, even in whitespace only mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...document.querySelectorAll('script[src]')].sort((x,y) => { | |
let splitx = x.src.split('/'); | |
let splity = y.src.split('/'); | |
return splitx[splitx.length-1].localeCompare(splity[splity.length-1]) | |
}).map(x=>console.log(x.src)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment