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?
Without a codepen it's hard to say. I assume there's a memory leak somewhere.
the code is online, i'm working on the production server, viction.io/pred/fab/gauges.wip.html
Wait are you refreshing the entire page after the predefined interval?
and yes, it's a mess, it's my 1st big app in JS
You might want to look into ReactJS/NextJS or VueJS
each iframes reload on in the setInverval call in loadGauges, not the main document
Обсуждают сегодня