From the course: JavaScript: Service Workers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Debug with other browsers - JavaScript Tutorial
From the course: JavaScript: Service Workers
Debug with other browsers
- [Instructor] I'm here in Safari, for the Mac, running the same localhost:5000 project that we have seen before. We can see that here the Service Worker is registered properly and when we open the tools here, we don't have an applications tab like in Chrome. To debug Service Worker within Safari, we need to go to the develop menu, and search for the Service Worker sub-menu and there we are going to see our current domain. If there are iframes inside this website, we might see more than one Service Worker. If I open this, we are going to receive an external window that is currently connected with the Service Worker only. Here we have the network tab, we have the debugger, we can have breakpoints, resources, that is currently using, timelines for performance analysis, and the console. Everything is here inside the Web Inspector for Service Workers. We don't have a system like we saw before in Chrome, to reload the Service Worker, unregister the Service Worker, or even see what's going…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Register a service worker4m 22s
-
Change the default scope3m 53s
-
Handle service worker events2m 50s
-
Debug with Developer Tools in Chrome5m 51s
-
Debug with other browsers3m 18s
-
Load external files3m 6s
-
Work with the registration5m 52s
-
Update the service worker5m 36s
-
Manage updates in your code4m 24s
-
Unregister the service worker3m 22s
-
-
-
-
-
-