- [Instructor] It's now time to execute code…when the browser is idle.…The problem with the idle time on each frame…is that it is different per frame.…Because the other faces of the frame,…such as input advance, parsing, or painting…are not equally on each frame.…So sometimes we will have more idle time,…sometimes we will have less…or even no idle time at all.…There will be many frames without idle time.…So there is a new API.…
It's the W3C, under the spec known…as Cooperative Schedule of Background Tasks,…sometimes also known as the background task API…or request idle callback.…It will let us execute low-priority code before each frame…or after each frame has been painted,…or before the next one.…If there is enough idle time,…because it is low-priority,…also we receive an argument where we can query how much…time is left before that idle time is gone…and before the next frame should start being processed.…
We are not forced to stop executing code…when the available time is zero, but we should stop…and instead the new idle callback in that case…
- Understanding the Performance APIs
- Navigation Timing
- Calculate milestones in the Performance Timeline
- Measuring the timing of navigation, resources, servers, and more
- Reading network and device information
- Optimizing code
Skill Level Advanced
Designing Websites for Performancewith Brian Wood43m 32s Appropriate for all
1. Reactive Web Performance
2. Performance Basics
3. Measure Performance
4. Decision-Making Helpers
5. Execute Code More Efficiently
Next steps1m 31s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.