Esger@ashware.eurosky.social24 Aug 2025Events to the rescue. The timeouts are arbitrary. You can’t trust 50ms. You need to know when something is ready to start the animation. You need to know when the animation is ready and do the next thing.1
Sam Rose@samwho.devIf you can tell me what I need to wait for I would be delighted to fix it.24/8/25, 10:21 am·0 reposts·0 likes
Esger@ashware.eurosky.social24 Aug 2025I’m speaking in general terms. I don’t even do TS. maybe make createSVG() return a promise and .then(doWhatsNeeded()).1
Esger@ashware.eurosky.social24 Aug 2025Maybe it’s worth the experiment, make it asynchronous. There’s delays in it as far as I can see.