You know, DOM isn't really for video games or realtime data visualization.
You know, DOM isn't really for video games or realtime data visualization.
If React's virtual DOM diffing is epxensive enough to be a bottleneck in some applications though, I could see an advantage to moving that off thread...
I'm not saying having the lib is bad, but I don't see a justified use-case for it.
The ability to perform that rendering in the background without blocking the main thread would offer some real value.
If you use server-side rendering (for example, if you use PHP on your server) then you won't need all of this and pages will load instantly without any complicated preloading.
Not necessarily -- Web Workers enable you to take advantage multiple CPU cores. You could, potentially, offload some of the rendering work to a CPU core that would otherwise go unused.
But I agree, if you went to the extreme case, pre-rendered everything the user could click on and utilized all CPU cores, then you'd definitely create a performance problem for yourself.
Angular can do this out of the box https://blog.angularindepth.com/angular-with-web-workers-ste...