Better HN
topnewbestaskshowjobs
Log inSign up

elliemae88

1 karma · joined Aug 16, 2019 (7y ago) · 3 submissions

Submissions

1.

Partytown is now in Beta Run third-party scripts from a web worker(builder.io ↗)

1 points · by elliemae88 · 4y ago · discuss

comment 6y ago · link · parent

When using stencil prerendering or SSR, you absolutely can write a component with shadow dom and have it prerendered. For example, most of ionic's components (https://ionicframework.com/docs) are shadow dom, and you can prerendering an Ionic app. The prerendered html generates a flat dom tree, and when the clientside JS hydrates each component it'll update the component to use shadow dom, all without a flicker, and it reuses the same original dom nodes.