Hey.
I understand browser rendering optimization at the Udacity rate. There is such a thing as the life cycle of an application. These are 4 components - Load , Idle , Animation , Response ( LIAR , usually called RAIL ). Confused in this matter.
- load is first ( Load is the first stage of the application life cycle), you need to be packed in 1 second at this stage.
- Then it goes simple when the browser does not count anything ( Idle is the second stage), at this stage you can upload, for example, images from the most visited pages of this site so that they load faster. This stage can last about two seconds - a couple of seconds pass (a person evaluates what is before his eyes) before a person starts clicking something on the page. At this stage, it is necessary to break Idle- scripts into pieces of 50 milliseconds in order to catch the beginning of human interaction with the page without brakes.
- As soon as a person begins to interact with the page, Idle- scripts stop their preloading and give way to other scripts, for example, animation scripts ( Animation is the third stage). Example - a person pressed the menu button, and the button is animated. The animation script needs to be packed within 10 milliseconds in calculations, plus 6 milliseconds to create the frame by the browser, totaling 16 milliseconds per frame will give 60 frames per second.
I DO NOT UNDERSTAND - Why does the 4th stage of the life cycle of an application Responce go to the last stage?