google / playground-elements

Serverless coding environments for the web.
BSD 3-Clause "New" or "Revised" License
534 stars 52 forks source link

Infinite loading of playground-preview if Service Worker "Update on reload" is checked #401

Open alexandar-mitsev opened 5 months ago

alexandar-mitsev commented 5 months ago

Hi,

If I have my dev console open and I have the option "Update on reload" for Service Workers, the playground-preview enters into infinite loading and never shows.

I can reproduce this on https://lit.dev/playground/ .

  1. check the option "Update on reload" in Dev Console -> Application -> Service Workers
  2. reload the page
  3. in the console you can see infinite amount of "Service Worker was updated because "Update on reload" was checked in the DevTools Application panel." image
  4. sample preview never loads
  5. uncheck "Update on reload"
  6. sample loads immediately image

Thanks and Regards