Basic Code Review/Cleanup of main.js for further refactoring
We should simply do basic refactoring and cleanup of main.js before we continue, as some of the things might bring small but immediate improvements (for example we query multiple times the same jquery nodes and don't cache them).
https://gitlab.com/gitlab-org/gitlab/blob/master/app/assets/javascripts/main.js
Edited by Tim Zallmann