ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-list infinite scrolling performance issue on tablet

Open hschaefer123 opened this issue 3 years ago • 2 comments

Bug Description

Using the ui5-list scrolling with 846 entries on an ipad pro (latest model), the dom rendering slows noticeable down. It gets slower and slower, scrolling deeper.

https://btp.udina.de/development/api-explorer.html

The list is directly bound against an data array and i am not using load-more event. Even load more would just add entries and enlarge dom, but not solve quick scrolling in both directions.

Even the usability of the load-more example is stuttering while adding data which maybe can only be solved with ahead preloading outside the visible area.

Are there any plans, to solve this inside the control like vue3-infinite-list does?

dc67062159aa494ca1079e0f8c2c2900_tplv-k3u1fbpfcp-watermark

Best regards Holger

hschaefer123 avatar Aug 03 '22 09:08 hschaefer123

Hello @hschaefer123

Our list is purely declarative unordered list element. We handover the whole performance responsibility to the wrapper technology (being it React, Angular, Vue, etc).

Currently, we do not have plans to provide such a "smart" list (@ilhan007 correct me if I am wrong, please).

Best Regards, Martin

MapTo0 avatar Aug 03 '22 12:08 MapTo0

Hi Martin, i just tried to use load-more with 1.6.0, but i do not got the event.

At the end of my computed filter, i returned the sliced array. At the end, the load-more event is not fired?

Using Button mode, the event is working well and i can increase the number of data that should be returned in filter function.

Is this scroll event also working, if your list is attached a data array? The infinite scroll example is adding list entries directly.

Best regards Holger

hschaefer123 avatar Aug 06 '22 08:08 hschaefer123

Hello @SAP/UI5-webcomponents-topic-p,

The question is regarding ui5-list web component and I think that the issue is forwarded to our component by mistake. Could you please look over?

Kind Regards, Niya

niyap avatar Sep 29 '22 06:09 niyap

Hi @hschaefer123,

have you set height to the list and the growing="Scroll"?

If so, could you try and extend it with your use case in order to reproduce the issue: https://codesandbox.io/s/ui5-webcomponents-forked-uiqbgi?file=/index.html

Restrictions: growing="Scroll" is not supported for Internet Explorer, on IE the component will fallback to growing="Button".

Kind Regards, Dobrin

dobrinyonkov avatar Sep 29 '22 07:09 dobrinyonkov

@dobrinyonkov this is purely a scrolling issue on safari. If you open the original link in safari you can clearly see it, even on a fast Mac: https://btp.udina.de/development/api-explorer.html

On chrome it scrolls very fast, on safari there is some jerking. A timeline recording shows no JS or layouting activity, but the CPU is at 100%.

Screenshot 2022-09-29 at 10 05 33

pskelin avatar Sep 29 '22 07:09 pskelin

Closing this based on the research above, as scrolling issue with safari. If you still find problems with the component, re-open this issue.

dobrinyonkov avatar Oct 11 '22 09:10 dobrinyonkov