- [Narrator] Continuing with the project,…it's time to replace our on-low handler here…with the navigation time in API…we're going to start using navigation time in API version 2…and then we will make a fall back.…So for that, we need tracks their performance object…and there, we need to get entries.…In this case, by type.…We're going to ask for, the type navigation…we don't have frames here, so we don't need to add for frame…And that will give us a list of entries,…so let's create navigation entries.…
Let's create the constant for that,…and then we're going to take those entries, and make a loop.…So we're going to check every entry,…and for every entry there, we're going to do something.…In this case, there is only one entry usually for…navigation, or no entries at all.…So I can show access sub zero if tail for each…and just in case let's other for each.…And if it's zero, it's probably because it doesn't have…the second version of the API.…
So once we are here, what we're going to do is…send a perf message, so we're going to log…
- 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 Intermediate
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.