Performance - The service worker behaviour is unreliable on Firefox
There is something really strange on Firefox. On my side on https://community.startinblox.com the app loads in ~2min which is completely unacceptable for such a small amount of data (10s of circles/projects/contacts only).
I compared it with Chromium and confirms that the loading on Chromium takes ~8sec. Which is a huge 15 times better. Screenshot of Chromium:
I tried a few things and validated that when unregistering the service worker (from here: debugging#/runtime/this-firefox and looking for https://community.startinblox.com/service-worker.js in the list) and reloading, the initial reload is acceptable again (~15sec):
When waiting a few minutes and reloading again, I am back with the painful Xmins loading time (X being a number between 2 and 7):
I tried it both with my extensions completely disabled and enabled, no impact.
There is probably a bug with the way our service worker script interacts with Firefox, but unsure at this point was to look for.
This issue is here for future reference.
Ping @jbpasquier @Cyrilthiriet @Berengere @alexbourlier am I the only one to experiment that or are you all using Chromium/Chrome/Edge (or other Chromium based derivatives such as Brave/Rambox/etc...) ?