Continue readingIn the same way that adopting requestAnimationFrame allowed us to schedule animations properly and maximize our chances of hitting 60fps, requestIdleCallback will schedule work when there is free time at the end of a frame, or when the user is inactive.
If you aren’t familiar with Promises or you have used them but don’t know why, then I hope this article will help you. Because “Promises are confusing.” And like any programming construct, having a good grasp of its behaviour comes from understanding what a Promise is built to do, not just how to us...
Continue reading
It is very likely that in your day-to-day JavaScript programming you will have encountered the problem that is ‘how can I maintain a collection of constants in the form of string literals, and reference these strings by a name?’ If you have posed this question, and are still waiting for an answer, t...
Continue reading