Created
June 15, 2015 07:20
-
-
Save vasanthk/961229df36c4c1e346d1 to your computer and use it in GitHub Desktop.
App Life Cycles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App Life Cycles | |
- Response | |
- Animations | |
- Idle | |
- Load (XHR, Websockets, HTML imports) | |
In Chronological Order: | |
Load (~1 sec) Initial page load | |
Idle (~ 50ms) Lazy load items | |
Response (~100ms) On interaction, respond within 100ms | |
Animations (~16ms) In reality we get ~12ms since the browser has some overhead | |
For an opacity change or transform animation, only the composite is triggered. | |
- The page isn't receiving any new HTML, so the DOM doesn't need to be built. | |
- The page isn't receiving any new CSS, so the CSSOM doesn't need to be built. | |
- The page isn't receiving any new HTML or CSS, so the Render Tree doesn't need to be touched. | |
- If an opacity or transform changes affects element on its own layer, layout won't need to be run. | |
- If an opacity or transform changes affects element on its own layer, paint won't need to be run. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment