In short, this implementation does NOT use an internal timer to detect size changes (as most implementations I found do). It uses scroll events on most browsers, and the onresize event on IE10 and ...
Throttling in JavaScript (with a Resize Example) When users resize the browser window, the resize event can fire dozens of times per second. Running heavy logic on every trigger can hurt performance.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results