Selecting a minified file in the glitch editor makes UI unresponsive


I’ve noticed the glitch editor lock-up when trying to load a decent size (~32KB) minified file with just a few lines like for example. Clicking that link takes about 2-3 minutes before the window becomes responsive in Chrome during which time you can see the cpu pegged and memory increasing to about 300 MB.

The thing is in this case I didn’t actually want to look at the file but I accidentally selected it when clicking through files in a project.


It can get a bit dicey when you load minified files, I believe it has to do with codemirror trying to parse them but I haven’t looked to close at it so that could be wrong. In my case I ended up adding *.min.js to the .gitignore I use on projects that have minified files.