Updating foundation-section for async/await#7721
Conversation
| * `loadImage()`, `loadJSON()`, `loadSound()`, and so on. This allows you to: | ||
| * - load files in a more readable, top-to-bottom manner | ||
| * - decide when the assets are fully available before proceeding | ||
| * - avoid nested callbacks often referred to as "callback hell" |
There was a problem hiding this comment.
This is great and much needed documentation! Two notes here:
-
I believe it would be best not to use the phrase "callback hell" here. This is because the people familiar with this term are not likely to be the majority of the documentation readers. Instead, spell out in 1 or 2 additional sentences: that nested callbacks require managing additional information and behavior, and lazy loading can be helpful but it also requires you to design your sketch around that.
-
Please me sure to have a separate paragraph here of 1-3 sentences explaining that callbacks can still be used as they were before, since this has come up a few times in past Q&A
Thank you so much!
There was a problem hiding this comment.
Sure, i can update this ASAP. Thanks for the review @ksen0
|
Updates look great @perminder-17 ! Thank you |
need to add more examples and polish minor docs
Testing still left