Michael de Silva's Blog

Software Engineer. Rubyist and Roboticist.

Michael de Silva's Blog

Software Engineer. Rubyist and Roboticist.

Twitter's Service Worker code, I just stumbled on it

Well, twitter died on me and I was interested in some parts of the UI and went spelunking with Chrome dev tools.

Realised they were running service workers and here's the code in all its glory. I've linked to a Gist that also has the .coffee Coffeescript version.