- [Instructor] Starting with Chrome,…we also have available an API…to check device's memory.…That is the available memory,…the RAM memory available…in the current user's device.…Compatibility might change with the future…but today it's only on Chromium-based browsers…and it will give you a number expressing gibibytes.…So remember gibibytes is basically 1024 mebibytes.…So it's basically roughly what we know of gigabytes…but it's a binary version of that.…
To use the API it's just getting navigator…the deviceMemory that's all.…And we're going to get the amount of gigabytes…out of float number.…It can be left on one for example at 0.5.…And typically the minimum value…that we will get it's 0.25 gibibytes.…Then if we have one or less than one…it means it's a low-end device…like a very cheap or old android.…From one to two gibibytes it's a mid-end device.…
Two to four a high-end device.…It can also be a tablet.…And from four to eight it's probably a desktop.…This is important because…even if you're desktop computer…or your laptop has 32 gigabytes of RAM…
- 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.