Can the performance lag been caused by events/timeRanges (DOM elements) amount that shown on the page with your custom preset? Maybe custom preset fits more events in a viewport?
Could you please try the same with our latest released version? We did a huge work for timeRanges performance.
Thanks!
Re: [ANGULAR] Custom ViewPresets Slowing Down App
Posted: Tue Dec 07, 2021 5:25 pm
by derreck
Hi Alex,
You need to install http-server and then in the zip files root CD into each of the 'dist' folders. Then enter/run 'http-server' in a terminal in each of the two 'dist' folders.
We're mainly using the custom presets to format the headers differently, I don't see it rendering a big difference?
The zip file is running the latest 4.3.3 version.
Re: [ANGULAR] Custom ViewPresets Slowing Down App
Posted: Tue Dec 07, 2021 6:14 pm
by Animal
Do this in the debug console:
document.querySelectorAll('.b-grid-row').length
And post the results back here.
Re: [ANGULAR] Custom ViewPresets Slowing Down App
Posted: Mon Jan 17, 2022 1:15 pm
by alex.l
I checked the code and profiled our application with the data and viewPresets you provided.
So, you created a timeAxis for 99 years period.
The thing is that when you used our weekAndMonth viewPreset, it generates ticks for every week for 99 years, which is 5219 ticks in total, when I use your start/end dates set. When you applied your custom viewPreset to display month and day, it generates ticks for every day for 99 years period, which is 36524 in total.