4 ms·
Don't forget cache. Using style=`...` in the HTML, although delivered in a scalable manner will lead to huge HTML size and no caching on the CSS ( e.g. externa
by drinchev 11y ago
Don't forget cache.
Using style=`...` in the HTML, although delivered in a scalable manner will lead to huge HTML size and no caching on the CSS ( e.g. external CSS files will be cached if the user loads another page, that uses it ).
This might be okay for a single page application, but indeed having the browser to re-compile the CSS in the inlines every time you do unmount a React component is another performance hit.
I don't like the idea at all.