Skip to content

Auto convert web components to css components at build #504

Answered by borisdiakur
realsamanrad asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @samanrd,
I'll try to answer both of your questions:

all of ld-component html tag names are rendered and exposed to visitors even empty placeholder slots and comments. This also increase the page load size.

The tag names must be rendered, because they are part of the web component. The #shadow-root (open) part of your example is not a comment. It is what the browser dev tools show to indicate that the component has a shadow dom. So this part is not transferred over the wire. The <!--v-if--> comment in your example is a Vue comment. It doesn't look like it's created by our component lib. I think it is created by your own code. Usually you shouldn't need to care about comments like thi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by realsamanrad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants