bestofui5-website icon indicating copy to clipboard operation
bestofui5-website copied to clipboard

Rendering not finished after splash screen

Open marianfoo opened this issue 2 years ago • 3 comments

Problem

When loading website on devices with lower cpu performance, the proper website is not shown after splash disappears. It is also visible on better machines, but just in a lot smaller timeframe.

Reproduce the error

  • open chrome devtools
  • throttle cpu x4
  • use mobile device ratio
  • reload page

Is there a way to prevent this? bestofui5load2

marianfoo avatar Apr 25 '22 05:04 marianfoo

Suggestion: don´t trigger removing splash screen with onAfterRendering but simply with a fixed timer like 200-500ms?

marianfoo avatar May 09 '22 13:05 marianfoo

@petermuessig Unfortunately did not improve with #193 example with 4x cpu slowdown just to highlight the problem might need to remove splash screen when data loaded bestofui5loading

marianfoo avatar May 11 '22 07:05 marianfoo

Hey @marianfoo one more thing that could be tried is using a splash screen like described here https://blogs.sap.com/2021/03/04/ui5-tips-adding-a-splash-screen-loading-indicator/. This way UI5 itself would take care of removing it when rendering the root (https://blogs.sap.com/2021/03/04/ui5-tips-adding-a-splash-screen-loading-indicator/#comment-599216). Not a 100% sure if this approach would fix the above described behavior but it could be worth a try.

wridgeu avatar May 11 '22 09:05 wridgeu