Strange <!--> comment in prerendered HTML – why is this appearing? #2516
Unanswered
bltMustafa
asked this question in
Help & Questions
Replies: 1 comment
-
That's a React thing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Vike team 👋
I noticed something odd when inspecting the HTML source of my prerendered clinic pages.
In some cases — especially when rendering dynamic sections like prices, locations, or test types — I see a mysterious comment node inside the DOM.
Here’s a screenshot of what I mean:

This only seems to happen when the data is dynamic (fetched from the backend during rendering). I'm using Vike with pre-rendering enabled for all /clinic/[slug] pages.
I'm wondering:
Is this inserted by Vike, or maybe by React during hydration?
Is this expected behavior for hydration boundaries?
Does it affect SEO or performance in any way?
Would appreciate any insights or clarifications you can provide. Thanks a lot for the awesome work!
Beta Was this translation helpful? Give feedback.
All reactions