bestofui5-website
bestofui5-website copied to clipboard
Rendering not finished after splash screen
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?
Suggestion:
don´t trigger removing splash screen with onAfterRendering
but simply with a fixed timer like 200-500ms?
@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
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.