google / google/playground-elements

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

Open
#401 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
648
Forks
61
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/google/playground-elements/assets/2347042/957f4f9b-0d38-4f86-8b02-896435d5ab88)
4. sample preview never loads
5. uncheck "Update on reload"
6. sample loads immediately
![image](https://github.com/google/playground-elements/assets/2347042/4a17adda-18af-4781-b22f-1521c89019e0)

Thanks and Regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.