Re:React Spreadsheet 2 – Your Own Google Sheets
by ukuina on Friday November 24, 2023 @11:02PM
(#38411070)
Which approach is more optimized in Chrome?
Re:React Spreadsheet 2 – Your Own Google Sheets
by arendtio on Sunday November 26, 2023 @02:24PM
(#38424175)
A few weeks ago I found a StackExchange thread where someone had benchmarked the two approaches and found, that table tags were somehow optimized. However, this was tested with identical content and with a table for which every cell had to be rendered. In other scenarios, the performance might be different, but for spreadsheets, this should be applicable. Sadly I can't find the link at the moment (was on a different PC).
To give an example of what makes it so difficult: Some browsers (e.g. Chrome) seem to have special optimizations for rendering tables. So performance-wise it makes a difference if you use table-tr-td-tags or div-tags within your DOM.