Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

codeboy

Member since
codeboy

Recent Docs Activity

View all activity
Page Date Comment

resize


removed the condition in init constraining the event listener won't be added unless the rAF was available.

resize


resize


resize


resize


1. Since the resize event will be triggered at certain rates, the 'loop' function wasn't necessary. 2. The actual callbacks would be running as soon as the resize was fired, insteadly in the rAF.