For further actions, you may consider blocking this person and/or reporting abuse
Read next
![benbpyle profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1037283%2F67844128-bf52-417b-baf1-6b8513e8c459.jpg)
Strong Performance with EC2, Lambda, and the Momento SDK for Rust
Benjamen Pyle -
![nft_research profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1121704%2F61b9e585-e691-44da-8ae4-2e84f28e288a.jpg)
What Is BC-404: A Comprehensive Guide to the Latest Deflationary NFT Standard
NFT Research -
![virajlakshitha profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F407437%2F7bfa2a86-d6af-4bcc-90bc-b8ef78ad9444.jpg)
Keeping Your Data Close: Cross-Region Replication with AWS DMS
Viraj Lakshitha Bandara -
![mohanapriya_s_1808 profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1689120%2F68a1c530-6b3e-472a-be44-237c580dc1d4.jpg)
Automating Email Notifications for S3 Object Uploads using SNS
Mohana Priya -
Top comments (1)
In the spirit of eli5, imagine that drawing a frame is like a kid asking their parent for something. The parent is busy, let's say preparing dinner in the kitchen, so the kid can't distract the parent too much, or else the food will burn. The kid just says "Dad, can you come and help me when you have a second?" When the parent is ready to do so, he comes over and helps a bit, and then goes back to cooking. If the kid needs more help, they can then ask the same question again. And so on.
A bit more detail: Normally your js code is processed in a single thread. When it's js that's running in the browser, that means a function that hogs the cpu can cause the whole page to hang. That is why you don't want to take control and start drawing whenever you want to. Instead you tell the event loop that you would like to draw a frame and give it a callback to execute when it thinks it's okay to do some drawing. You do a small amount of work at that time to draw a single frame - remember you don't want to hog the cpu too much. Then you can request another animation frame will which in turn get scheduled by the event loop, and so on.