4 ms·
Last time I used them, web components were incredibly slow. They were so slow to render, after using maybe 2 or 3 of them I realized why nobody is trying to bui
by tomphoolery 4y ago
Last time I used them, web components were incredibly slow. They were so slow to render, after using maybe 2 or 3 of them I realized why nobody is trying to build apps this way. Just isn't there yet. Probably won't be until HTML Imports are merged with JS Imports.
- hunterloftis 4y agoThis is a surprising perspective, since we're using web components top-to-bottom to build photoshop on the web, & some of that decision was driven by performance comparisons where web components outperformed react. It's possible that very naive implementations of web components would render as slowly as you describe - like if you rebuilt the whole DOM tree at every level on every change. Here is a performance-oriented talk about rendering web components via browser-parsed template literals via Lit (which is how we do it): https://youtu.be/CJYkwDTaHzY https://youtu.be/CJYkwDTaHzY
- frozencell 4y agoStop your propaganda, the Internet largest video platform uses Web components with Polyfill.