Basic
Details
- What is WebAPI?
- setTimeout, setInterval
- Storage API
- XMLHttpRequest, Fetch API
- Device APIs
Links
- https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Introduction
- https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
- https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
- https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
- https://developer.mozilla.org/en-US/docs/Web/API
Intermediate
Details
- Most popular WebAPIs
- WebSockets
- WebWorkers
- Console API
- History API
- Canvas API
- Additional WebAPIS
- Beacon API: Keep browser sending request during the unload.
Links
- https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
- https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API
- https://developer.mozilla.org/en-US/docs/Web/API/Console_API
- https://developer.mozilla.org/en-US/docs/Web/API/History_API
- https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API
Advanced
Details
- IndexedDB
- Performance API
- Intersection Observer API
- ResizeObserver API
- MutationObserver API
- ServiceWorker API
- Web Notifications API
- Clipboard API
- WebRTC
Links
- https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
- https://developer.mozilla.org/en-US/docs/Web/API/Performance_API
- https://developer.mozilla.org/en-US/docs/Web/API/Resize_Observer_API
- https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
- https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
- https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API
- https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API
- https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API
- https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API
Courses
Notes
Prefect vs Preload
2 cái có tác dụng gần giống nhau, đều là tải trước tài nguyên. khác nhau ở priority, với prefect
thì sau khi tải xong các luồng chính như css, html, js thì sẽ tải để chuẩn bị sau. còn với preload
thì sẽ tải xuống nhanh nhất có thể
Beacon API
- https://putsreq.com/: record HTTP requests and fake responsibility
IndexedDB
- LocalForage:
pagevisibility
Fire event when user click another app or something not focus on current app Example: Stop animation, stop request api, or pause video for save battery your client