macos – What is Safari Service worker ? Would disabling it affect website performance?

For the past three days, I have seen Outlook and Twitter service workers trigger randomly, even if I never opened those sites in non-private mode. They consume 2 cores and distract me. Then I force quit them.

Before applying the solution in

I need to know

  • Why websites use it?
  • What would be the impact if I disable all of them ? (I’f prefer if I can handle it on case by case basis)