Replies: 0 comments 4 replies
-
A few thoughts:
All in all, my thinking would be:
(as an aside, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working on a project to update the JS learning area to use "modern JS", whatever that is. At the moment I'm working on the module about asynchronous JavaScript: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous .
The general outline of this is pretty clear:
But in the middle of the module at the moment is a long article on "cooperative asynchronous JavaScript", which covers
setTimeout
,setInterval
, andrequestAnimationFrame
: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Timeouts_and_intervals. As far as I can tell the content here is OK from a "modern JS" point of view, but it feels very out of place in the general shape of the module.I think it might be better to move the article into the "Client-side Web APIs" module, which is already (by its nature) a bit of a hodge-podge.
But I'm interested in hearing opinions, which is why I'm posting here.
I'm also interested in hearing opinions about whether I should update the content of this page. As I said it looks more or less OK to me, but we could perhaps shorten the stuff on
setInterval()
since in most casesrequestAnimationFrame()
is likely to be a better option.Beta Was this translation helpful? Give feedback.
All reactions