opened
jonahwilliams
username_0
This should speed up the performance of the initial load the first time an application using Flutter Web is visited. Currently registration is delayed to a load event:

```javascript
    if ('serviceWorker' in navigator) {
      window.addEventListener('load', function () {
        navigator.serviceWorker.register('flutter_service_worker.js');
      });
    }
```

Instead we should have the engine dispatch an event after the first frame. Then listen for this instead:

```
    if ('serviceWorker' in navigator) {
      window.addEventListener('flutter-first-frame', function () {
        navigator.serviceWorker.register('flutter_service_worker.js');
      });
    }
```
Use a first-frame event to signal that it is safe for the service worker to activate
issue
closed
jonahwilliams
username_0
issue