Urgent.News

What's breaking now, across hundreds of outlets.

Tech

1,186 empty comments sit between the words of our pages, and 213 more are Suspense boundaries with nothing in them

If you view source on nakodo.app and search for <!-- , you find comments that nobody wrote. There are two kinds, and they come from React rather than from us. I fetched all 106 pages in the sitemap and counted them. Kind one: <!-- --> between two pieces of text 1,186 of them across the site. A median page has 10, the lowest has 3 and the most is 82, on the terms page . You can check that one in a…

The wire material reports on 1,186 empty comments scattered throughout the pages of nakodo.app, with an additional 213 Suspense boundaries containing no content. These empty comments are generated by React and appear between pieces of text when JSX produces two text nodes next to each other. The comments serve as markers to prevent the browser from merging the two text nodes into one, which would cause issues for React.

Three main sources account for most of these comments: the footer on every page, the contents list at the top of long pages, and sentences that interpolate the product name. The footer generates three comments per page, while the contents list generates two comments per entry. The product name interpolation comments occur in various places throughout the site, such as product-related sentences and numbered lists.

In addition to the empty comments, there are 213 Suspense boundaries with no content. Suspense boundaries are used to swap in streamed content later, with !--$-- and !--/$-- markers placed before and after the boundary's content. Out of the 213 pairs, 212 are empty and appear on every page, except for three on the home page. These empty Suspense boundaries are used to indicate whether the page has content, allowing for easy auditing with commands like grep -o.

The author's investigation into these empty comments and Suspense boundaries revealed that they were not created intentionally by the site's developers. The empty comments are a result of default behavior in React when two text nodes are placed next to each other, while the empty Suspense boundaries are specific to the landing page, which is rendered per request and requires a boundary to indicate whether content exists.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in Tech

More from Friday, 4 December 2026 →