11 ms·
With a service worker, you can stream the header part of a new document instantly from the service worker, while fetching the content. That essentially makes an
by hoten 7y ago
With a service worker, you can stream the header part of a new document instantly from the service worker, while fetching the content. That essentially makes an instance first paint.
I don't think that's what the example is showing, though.
- mostlystatic 7y agoOh interesting, I didn't know about stitching the streams together in the service worker! Do you know what the advantage of that is over serving the full cached HTML page layout and then fetching the content HTML from inside the page?