Changes to frontend code should only require a refresh of the page. In fact, a change to JS code should actually trigger a browser refresh automatically.
So it sounds like something is wrong with your environment. Did you follow one of the development installation guides here on Meta?