https://github.com/maximelebreton/quick-javascript-switcher
By default, I don't run into these problems and save a lot of compute!