3 ms·
What's the performance on <template>? This approach seems like it'd be slower than having templates precompiled on the server and already served as JavaScript.
by malandrew 14y ago
What's the performance on <template>? This approach seems like it'd be slower than having templates precompiled on the server and already served as JavaScript.
- adlpz 14y agoI assume the only overhead will be how much they weight in your DOM (this is inevitable anyway) and whatever time it takes to clone the element. So probably it will be actually faster than compiling server-side and XHR-ing on-demand because you don't touch the network.