
A website sitemap serves three distinct functions: guiding a human visitor, providing Google with an explorable map, and withstanding the technical constraints of modern JavaScript applications. Most online guides address one of these dimensions, rarely all three together. Comparing these three requirements helps identify where the real trade-offs occur when designing a sitemap.
HTML Sitemap, XML Sitemap, and JavaScript Rendering: What Each Format Covers
The most common confusion revolves around the very nature of the sitemap. An HTML sitemap is a user-visible page that lists categories and clickable links. An XML sitemap is a technical file intended for indexing bots. Both can coexist, and in most cases, they should.
| Criterion | HTML Sitemap (user page) | XML Sitemap (technical file) |
|---|---|---|
| Target Audience | Human visitors | Search engine bots |
| Readability | Structured text, clickable links | XML tags, unreadable without a tool |
| Page Discovery | Limited to displayed links | Can list thousands of URLs |
| Direct SEO Impact | Internal linking, PageRank distribution | Reporting URLs to crawlers |
| JavaScript Rendering/SPA | Depends on the framework (risk of empty links) | Independent of browser rendering |
On a site built with a JavaScript framework (React, Vue, Angular), the links in the HTML sitemap may not appear in the raw source code. Google’s crawler uses a rendering engine, but with a delay. The XML sitemap, on the other hand, transmits URLs directly, without dependence on client-side rendering.
Navigating the Bazaar & Compagnie sitemap illustrates this logic well: each category is accessible with one click from a static HTML page, ensuring both human readability and exploration by search engines.

User Readability of the Sitemap: Structure and Navigation
A user-focused sitemap does not resemble a database dump. Sites that merely list all their URLs on a single page create an unusable wall of links. Readability relies on three concrete mechanisms.
- A visual hierarchy that replicates the site’s tree structure: main categories are headings, and sub-pages are indented below. The visitor can spot the section of interest within seconds.
- A thematic grouping rather than alphabetical: classifying by content universe (products, guides, legal mentions) aligns better with navigation logic than sorting by the first letter.
- A controlled number of links per level: beyond about thirty visible links without scrolling, cognitive overload neutralizes the page’s usefulness. Recent documentation guides recommend “progressive disclosure,” which involves first displaying categories and then expanding sub-levels on demand.
A readable sitemap reduces the number of clicks needed to reach any page. It serves as a safety net for visitors who cannot find their way through the main menu or internal search.
Indexing and Internal Linking: The Sitemap as an SEO Lever
From an SEO perspective, the HTML sitemap and XML sitemap play complementary roles. The HTML sitemap distributes “link juice” (internal PageRank) to deep pages. The XML sitemap signals to crawlers the existence of pages that might not be discovered otherwise.
When the HTML Sitemap Makes a Difference
On a site with a few dozen pages, a well-structured HTML sitemap often suffices to ensure that each page receives at least one internal link from a navigation page. Orphan pages, those without any incoming links, remain invisible to search engines. Regular crawling of the site allows for the detection of these pages and their reintegration into the sitemap.
When the XML Sitemap Becomes Essential
Beyond a few hundred pages, or when content is generated dynamically (e-commerce filters, personalized result pages), the XML sitemap takes over. It allows for signaling URLs that the crawler would not discover by following internal links and indicates the last modification date to prioritize recrawling.
Combining HTML sitemap and XML sitemap covers two complementary angles: internal linking for authority distribution, and technical signaling for indexing coverage.

Sitemap and JavaScript Applications: The Client-Side Rendering Trap
Sites built in SPA (Single Page Application) mode pose a specific problem. Content is dynamically loaded by JavaScript after the initial page display. The raw HTML code sent to the browser (and to the crawler) may contain only an empty shell.
For a sitemap, the consequence is direct: if navigation links are generated by JavaScript and server-side rendering (SSR) is not enabled, the crawler sees no links in the raw HTML of the page. Google eventually renders the JavaScript, but with a delay that can reach several days for low-authority sites.
Three approaches can help circumvent this problem:
- Server-side rendering (SSR) or static site generation (SSG): the complete HTML is generated before being sent to the browser. The links in the sitemap are present in the source code from the first load.
- Server-generated XML sitemap: even if the visible HTML sitemap depends on JavaScript, the XML file remains accessible to bots without rendering.
- Regular auditing of raw HTML via a crawler configured without JavaScript: this reveals exactly what bots see during their first pass, before deferred rendering.
On the other hand, relying solely on JavaScript rendering without a technical safety net exposes one to indexing gaps that only a crawl audit can detect.
Auditing Your Sitemap with Real Usage Data
Recent navigation audits no longer limit themselves to checking link structure. Analyzing user journeys through analytics tools, combined with crawl data, helps identify ignored pages, drop-offs, and friction points.
A sitemap that no one visits is not a useful sitemap. Cross-referencing crawl data and usage data reveals the real blind spots. A page listed in the sitemap but never clicked indicates either a visibility issue on the page or content that does not meet any real need.
The robustness of a sitemap is therefore measured on three simultaneous axes: the rate of pages covered by at least one internal link, the proportion of pages actually indexed in Google, and the actual click-through rate on the sitemap page. None of these three indicators taken in isolation is sufficient.