Skip to content

Instantly share code, notes, and snippets.

@jkmartindale
Created September 9, 2021 19:37
Show Gist options
  • Save jkmartindale/99110e34297547479bb0d0ae74f5ef58 to your computer and use it in GitHub Desktop.
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
[...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