You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ghost
changed the title
suggestion: Use requestAnimationFrame instead of window.onResize.
suggestion: Use requestAnimationFrame instead of window.onresize.
Jan 17, 2017
On desktop, try resizing with the mouse back and forth. The layout (the content at the bottom) is generated with JavaScript that is hooked in by requestAnimationFrame.
Uh oh!
There was an error while loading. Please reload this page.
In some of my personal apps, I've noticed that making an animation loop with
requestAnimationFrame
and detecting window size inside there then updating stuff seems to be smoother than relying onwindow.onresize
(https://github.com/sfirrin/Clean-Google-Calendar/blob/master/main.js#L37).The text was updated successfully, but these errors were encountered: