fullpage.js + handsOnTable.js slow performance on scrolling

我与影子孤独终老i 提交于 2019-12-13 07:06:27

问题


I'm using fullpage.js to split the page into sections. One of the sections has a grid built with handsOnTable.js.

It works perfectly, apart from the performance in IE (all versions up to 11). When you scroll to the section with the grid, the actual scrolling is very slow, not smooth and kind of jumping. The issue does not persist in other browsers.

I assume that the scrolling is causing the grid to re-render or something like this and that affect the performance.

Any help will be appreciated.


回答1:


You're entirely correct. Handsontable uses virtual rendering to only render what you can see. When you scroll, it re-renders the visible window. Unfortunately, IE never plays nice with...many things, this being one of them.

Handsontable prides themselves in their optimized solutions so if you'd like to bring this issue up on their github page, you may get some feedback. Otherwise, the answer to your implied question is:

Yes, Handsontable scrolling will work slow on IE

One solution would be to disable virtual rendering to allow for faster scrolling, however, this is not recommended as it will make the entire table re-render whenever there is a change, making the scrolling fast but the rest of the table slow.



来源:https://stackoverflow.com/questions/32974083/fullpage-js-handsontable-js-slow-performance-on-scrolling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!