Hello,
I have been observing slow javascript interop call performance on pages with Syncfusion components.
For the testing, I am calling the bootstrap javascript collapse function from Blazor c# code.
I prepared a sample with 5 pages to demonstrate it.
First page: There is a button and a simple SFTab under the collapsible div. JS method call takes around 12 ms on my PC.
Second page: I put a grid below the same layout as on the first page. JS method call now takes around 30 ms.
Third page: I used a column template with the grid to show images (from Syncufusion examples). JS method call again is around 30 ms.
Fourth page: I used a row template within the grid. This time JS method call takes around 20 ms.
Fifth page: I put the button in each row of the grid using the row template. JS method call jumped to around 100 ms. You start to see that the collapse animation is not smooth anymore.
And lastly Sixth page: There are no Syncfusion components at all. I created the same grid with just Html. JS method call is blazingly fast, just takes 2-3 ms at all.
As you see, when SyncFusion components are used on a page, the JS interop call is dramatically getting slower. Why does it cause this? Is there a workaround?
Hi,
Did anyone have a chance to look at it?
Thanks.
I see but as far as I know, there is no native Collapse component in Syncfusion Blazor. Do you have a suggestion for an alternative?