-
Book Overview & Buying
-
Table Of Contents
Blazor WebAssembly by Example - Third Edition
By :
This chapter took you deep into Progressive Web Apps (PWAs). You learned how to transform a standard web app into a full-featured PWA by adding some images, a web app manifest and a service worker. You learned about web app manifest configuration and service worker implementation, including the various caching strategies that make PWAs fast and offline-capable. You also learned how to use the CacheStorage API to cache request/response pairs and about both the Geolocation API and the OpenWeather One Call API.
For the project in this chapter, you started with a simple web app created using the Blazor WebAssembly App Empty project template. You used JS interop to retrieve the user's coordinates via the Geolocation API and pulled 5-day forecasts from the OpenWeather One Call API. The forecasts were displayed using a custom Razor component that was styled using Bootstrap.
Next, you transformed the Blazor WebAssembly app into a fully functional PWA by adding images, a web app manifest...