Breakpoint detection without layout thrashing
When you implement responsive websites, you will sooner or later run into the problem of your JavaScript code needing to know the current responsive breakpoint. Even more, you probably want some kind of event when the current breakpoint changes — e.g…
