SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.47k stars 254 forks source link

Documentation samples never load #8661

Open alexandar-mitsev opened 3 months ago

alexandar-mitsev commented 3 months ago

Issue Description

Hi,

When going on page https://sap.github.io/ui5-webcomponents/components/Avatar the sample of the avatar does not load. It shows loading indication for the sample, but this never ends. No errors in the console, but in network constantly tries to load an "index.html" and it fails continuesly.

Same happens for all samples I tried.

Issue Type

alexandar-mitsev commented 3 months ago

Seems the issue is reproducible only when the dev console is open. Tested with both Chrome and Firefox. In Firefox there is a message on the place of the sample: Cannot find "/__playground_swfs_1dae6563/esefb9/index.html" in playground-elements@0.18.1

On localhost, e.g. http://localhost:3000/components/Avatar , build from main branch - same issue is reproduced even when dev console is closed.

dobrinyonkov commented 3 months ago

Hello @SAP/ui5-webcomponents-topic-core,

I tested on Mac OS, Chrome Version 123.0.6312.105 (Official Build) (arm64)

https://sap.github.io/ui5-webcomponents/components/Avatar - Here the issue is a bit hard to reproduce on my end, after a few attempts/refrehses while newtwork tab in the devtools is opened I started to hit rate limit but the samples were loading initially.

http://localhost:3000/components/Avatar - For me the sample loads but it takes a lot of time ~ 1-2 mins. It seems that multiple requests are filed for the same resources. image

Could you please investigate this issue?

Kind Regards, Dobrin

alexandar-mitsev commented 3 months ago

After further investigation, for me the issue was related to the option "Update on reload" for Service Workers. And it is reproducible on https://lit.dev/playground/ Reported it as an issue here - https://github.com/google/playground-elements/issues/401