by iteratethis · 3y ago · 0 comments
The point is that the flavor "HTML Web Component" does not rely on JS to start rendering, unlike React.
A popular app that some web developers here may use day-to-day recently is Figma, which uses WebGL for rendering.
A variation could be the rendering of a partial UI whilst you then fetch data client-side. Even in this case the web component has the advantage as no JS is needed to render the initial UI.
<special-image>
<img src="/example.png" />
</special-image>This image will render before the JS is executed, so you've got no blockers and a perfectly fine fallback, then with the web component you enhance your image with whatever JS you want.