"While garbage collection occurs, it blocks the
main thread, which means other Javascript cannot be executed until the event
completes. Be conscious of how janky your application may become due to
extensive Garbage Collection events!"
There's no guidance here at all in what "janky" means, what it smells like, how to avoid it, etc etc etc.
Does it mean have just one closure? Can you have 10,000? When does it get janky? What do we use in place of closures?
I realize this is a really brief lesson, but more information seems necessary for many users to glean anything useful about Garbage collection.
In the final lesson you write:
"While garbage collection occurs, it blocks the main thread, which means other Javascript cannot be executed until the event completes. Be conscious of how janky your application may become due to extensive Garbage Collection events!"
There's no guidance here at all in what "janky" means, what it smells like, how to avoid it, etc etc etc. Does it mean have just one closure? Can you have 10,000? When does it get janky? What do we use in place of closures?
I realize this is a really brief lesson, but more information seems necessary for many users to glean anything useful about Garbage collection.