I have a monitoring page with simple table (tr and td ) which is updated every second. after working for a while there is a growing memory usage (memory footprint) until my web page crashes.
as I said it is a monitoring page which is supposed to work for months without refresh or any thing else .
if I remove my table every thing is ok but I need (tr and td). This issue occurs for both chrome and chromium, and for same code program there is no problem with Firefox browser.
what can I do to solve this problem?
const update =(columnName, data = []) => {
const columns = document.querySelectorAll(`[data-field='${columnName}']`)
for (let i = 0; i < columns.length; i++) {
columns[i].innerText = data[i]
}
}