Fast Frontend Testing, Storage, Observers, Fetch, & More
Manage episode 424671738 series 3475462
A whole grab bag of topics today! We talk about some of the well-known storage APIs like localStorage and sessionStorage, as well as the newer IndexedDB API which pairs well with Service Workers. We also talk about the three Observer APIs to help with reacting to DOM mutations, scrolling, and size changes. Apparently fetch DID happen (!), and testing against three headless browsers at once in a fast and reliable manner is easier than ever. All that and more in today’s episode of Just a Spec.
Hosted by Jared White & Ayush
Links:
- The Spicy Web & That HTML Blog (Jared)
- Radioactive Toy (Ayush)
- Web Storage API
- IndexedDB
- Service Workers
- Observer APIs:
- XMLHTTPRequest superseded by fetch
- Testing web components in headless browsers with web-test-runner
- Using theme-color meta tag
- Large, small, and dynamic viewport units
Chapter
1. Introduction (00:00:00)
2. Queue up the topics (00:02:57)
3. Web Storage APIs (00:03:24)
4. Service Workers (00:08:18)
5. Discussion about storage and service workers (00:12:53)
6. Service workers in hybrid mobile apps (00:18:44)
7. Synchronizing data with the backend (00:20:26)
8. SessionStorage gotchas (00:22:16)
9. Observer APIs (MutationObserver, etc.) (00:24:50)
10. Observing the DOM over time, rather than new page loads (00:32:35)
11. Remember XMLHTTPRequest? (quite the mouthful!) (00:35:31)
12. fetch is so much easier! (00:39:00)
13. APIs so old they're named after XML ;-P (00:40:02)
14. …and now we're talking about IE! (00:41:38)
15. Using fetch on the server (Node etc.) (00:42:29)
16. fetch happened (00:43:03)
17. Testing web components using 3 headless browsers (00:43:14)
18. Lightning round: Theme colors changing browser chrome (00:50:38)
19. New viewport units (00:52:11)
20. Outro (00:55:22)
25 episode