Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Oh 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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: