Lighthouse really needs the stack collection to finish quickly, or it will mark the entire run as fatal. We can handle this just on the lighthouse side but I figured it would be generally applicable too :)
The workbox detection was pretty broken in my testing as navigator.serviceWorker.controller was frequently null in practice so I updated it to fallback to the active registration script URL too.
Hi there 👋
Awesome repo! We love using it in Lighthouse :)
Two changes:
navigator.serviceWorker.controller
was frequently null in practice so I updated it to fallback to the active registration script URL too.Helpful testing page that uses workbox: https://melodic-class.glitch.me/sw-workbox.html