Increase performance of the breakpoint size checker
What does this MR do?
Increase the performance of the breakpoint size checker. Currently it uses jQuerys :visible
selector which isn't great for performance especially on pages with a lot of DOM nodes, large merge requests for instance.
This changes it to simply check the width of the window against the width of pre-defined breakpoints taken from Bootstraps code.
On a page with nothing on I noticed it went from 0.8ms
to 0.01ms
.