Похожие чаты

I'M working on a project where I have a lot

of iframes generated in a setinterval, it redraws correctly at interval, I also have checkboxes to select the iframes I want to see and all is working fine till a point where I cannot access the iframes, get documentbyid of the frame return null, even if I can see it, and it keeps updating at interval
with just a few frames I do not get the errors with all 190, in 3mn I get the console filling up with errors
I'm afraid I have a big bug somewhere, or a mistake in the logic
any clues on what I can check?

6 ответов

8 просмотров

Without a codepen it's hard to say. I assume there's a memory leak somewhere.

Fab-horn Автор вопроса
Pedro Aguiar
Without a codepen it's hard to say. I assume there...

the code is online, i'm working on the production server, viction.io/pred/fab/gauges.wip.html

Fab horn
the code is online, i'm working on the production ...

Wait are you refreshing the entire page after the predefined interval?

Fab-horn Автор вопроса
Pedro Aguiar
Without a codepen it's hard to say. I assume there...

and yes, it's a mess, it's my 1st big app in JS

Fab horn
and yes, it's a mess, it's my 1st big app in JS

You might want to look into ReactJS/NextJS or VueJS

Fab-horn Автор вопроса
Pedro Aguiar
Wait are you refreshing the entire page after the ...

each iframes reload on in the setInverval call in loadGauges, not the main document

Похожие вопросы

Обсуждают сегодня

Карта сайта