4 ms·
Yes, that’s exactly what AnimationWorklet is for. That being said, I think even smaller-scale things like state management and hitting APIs should be moved to
by dassurma 7y ago
Yes, that’s exactly what AnimationWorklet is for.
That being said, I think even smaller-scale things like state management and hitting APIs should be moved to workers. It all increases resilience and buys headroom for low-end phones.
- prasanthv 7y agoAgreed, I’ve always wondered why this isn’t done more often, it seems like the perfect place for tasks such as those. That being said, I’ve been a web developer for over 5 years and have never actually decided to move tasks to web workers; it’s about time I change that. I also find it weird when devs complain about the lack of shared state and how it’s some how a limitation. Messaging passing architectures haven proven key for modelling concurrency in many powerful languages and frameworks like Erlang/Elixir and Go channels to name a few. Anyways thanks for writing this up. Proper breakdown and grouping will have unseen benefits for sure, and in this case, very seen :)