Earlier quoted context omitted.
no crash with: setInterval(() => { websocket.send(JSON.stringify({ action: 'plus' })); }, 0)
setInterval( () => { if(state.textContent == 'on') { websocket.send(JSON.stringify({ action: 'plus' })); } }, 50)
[deleted]
71–74 of 74 posts
SAVE YOUR EYES, a bit: body.style.transition = `background-color 0.9s ease 0.1s`
I appreciate the strobe warning! Not gonna open it so I have no idea what it is but congrats on whatever it is. Anyway have an up vote for the strobe warning
Here's a (static, that don't flash) screenshot: https://up.l3m.in/file/1645698692.png edit: and here's a (very slow, 2s transition) gif of what it renders to: https://up.l3m.in/file/1645698812-slow-strobe.gif