Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

footnote for requestAnimationFrame and setImmediate #346

Closed
lewisje opened this issue May 29, 2016 · 2 comments
Closed

footnote for requestAnimationFrame and setImmediate #346

lewisje opened this issue May 29, 2016 · 2 comments

Comments

@lewisje
Copy link

lewisje commented May 29, 2016

Their purpose is similar to setTimeout (with timeouts of 16 and 0, respectively), but as far as I can see, they lack the major issue of setTimeout, because they do not accept strings of code.

requestAnimationFrame is implemented in modern browsers, and although setImmediate is only implemented in IE10+, Edge, and Node, and faces resistance from Gecko, WebKit, and Blink, it's still useful enough for a polyfill to be developed for it.

@peterjwest
Copy link
Collaborator

Javascript Garden only covers ES5. I think it would be great to extend this to ES6, but this would take a lot of work.

@lewisje
Copy link
Author

lewisje commented May 31, 2016

Those aren't even ES5 vs. ES6 things, but I will admit that browsers from when ES5 was ratified probably don't have either thing.

Specifically, requestAnimationFrame was originally in the W3C Animation Timing Specification, but it was moved to HTML 5.1 when that spec was deprecated; setImmediate was proposed to the W3C by Microsoft in 2011 but so far only adopted by Microsoft and Node and polyfilled fairly well for other modern browsers.

I'll close it anyway, because even mentioning these two things may complicate matters.

@lewisje lewisje closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants