Leverage Service Workers for performance improvements
Closed, DuplicatePublic

Description

Gilles created this task.Jun 8 2015, 5:36 PM
Gilles updated the task description. (Show Details)
Gilles raised the priority of this task from to Needs Triage.
Gilles added a subscriber: Gilles.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 8 2015, 5:36 PM
ori set Security to None.Jun 8 2015, 5:37 PM
ori added subscribers: Krinkle, Jdlrobson, Jhernandez, ori.
ori updated the task description. (Show Details)Jun 8 2015, 5:41 PM
brion added a subscriber: brion.Jun 8 2015, 5:41 PM
Tgr added a subscriber: Tgr.Jun 8 2015, 11:06 PM
Tgr removed a subscriber: Tgr.
Tgr added a subscriber: Tgr.
Krenair added a subscriber: Krenair.Jun 9 2015, 7:05 PM
phuedx added a subscriber: phuedx.Jun 10 2015, 6:28 PM
Krinkle moved this task from Inbox to Backlog on the Performance-Team board.Jun 18 2015, 12:14 AM

I think we need to aim big here. I think we should be aiming to have a mobile site using the mobile API and service worker caching where available. Don't get me wrong, I think this is a big undertaking with many things to work out and trade offs to be made but I think it is doable as a stretch goal in a quarter.

T101732 seems a great way to get familiar with ServiceWorker and is more compact and achievable.
Would be great to dream up an even simpler low risk task than this to get all of us familiar with ServiceWorker (but I'm not sure what this would be yet).

For a simple getting started task to get us would stealing Jake's take offline button in his demo [1] work?:

  • Could add a "take offline" button to all pages
  • When clicked it generates a url to a special page that takes a parameter and uses ServiceWorker to intercept all our network requests from that page.

Benefits of this:

  • isolated from rest of our infrastructure - so creates caching sandbox.
  • Would feed nicely into the 'big goal'

[1] https://wiki-offline.jakearchibald.com/wiki/Hulk_Hogan

Florian added a subscriber: Florian.Aug 7 2015, 8:49 AM
Peter added a subscriber: Peter.Aug 19 2015, 8:13 PM
Jdlrobson triaged this task as Normal priority.Sep 4 2015, 5:33 PM
Tbayer added a subscriber: Tbayer.Nov 27 2015, 9:52 PM

See also T118041#1835201 : About 30% of our mobile web users currently have devices/browsers that could potentially support service workers.

@Tbayer that's pretty amazing already if you factor out iOS devices which I
think are around 45% of views.

The problem in mobile is going to be basically Apple. Without their support
the max % of SW enabled browsers will peak at around ~50% sadly.

There's also the point of enabling use of it to benefit millions and go to
the Webkit team to present a solid use case and see if we can play a part
in standardization of the technology.

If we use it in desktop, the support should increase highly soon when
Firefox rolls it out to stable.

Also it seems like Edge is considering implementation which is a good sign.

ori added a comment.Nov 28 2015, 6:56 PM

I can't fathom why this would be prioritized over T117001: Increase mobile performance for 2G connections.

Ori it's not and not sure where you got that impression - could you clarify? 2g is the goal and this is a soft dependency. It's linked as being blocked by this. (That's captured in T113066). The description even says this is a brainstorm.