Open
Description
Checking the window size with the "resize" event is a performance issue. A much better alternative is to debounce the size detection using requestAnimationFrame.
Example: https://github.com/pazguille/viewport
Checking the window size with the "resize" event is a performance issue. A much better alternative is to debounce the size detection using requestAnimationFrame.
Example: https://github.com/pazguille/viewport