eudrino
Cache dom elements with router
well, there might be other optimizations that could be done first
ultimately i want to leave those nodes around and re-use them
it might harm the memory usage of my app, but it'll be way smoother to change between views
each view consists of up to 5k nodes (i might work on lowering these, but it won't be much lower)
7 replies
Cache dom elements with router
Well, i'm trying to optimize the element swap computation, currently it requires cloning the template for a huge component, which takes considerably longer on slower devices compared to just creating those nodes before hand and then calling
node.replaceWith
7 replies