|
|
|
|
|
by akst
1 day ago
|
|
I think also the lack of framework support for things like defining a shadow root probably feeds into this idea it needs to be mutually exclusive. Elements in shadow root elements can be updated more or less the same way as elements in light doms with incremental patches and updates. The main beneficiary of supporting shadow root and local stylesheets would likely be hobbyist projects looking to minimise their build step, as local stylesheets give you much of the benefits of many of the tools that handle localising a stylesheet to a component at build time. Unfortunately, I haven't really seen numbers on this but I can't help but I feel the way styles are bundled by most modern bundlers (with global styles and minified classNames) will likely outperform a bunch of disparate components with their own individual local stylesheet with its own request (even with http2 or whatever). So again I can see why the framework maintainers may struggle justify spending time and energy on this. |
|
I don't know if they fixed it, but when reddit rewrote their menu with web components, it required 100+ http requests to render.