How to View Page Source to Check for Server-Side Rendering
To verify if a page is server-side rendered, you need to view the raw HTML source that was sent from the server. This is different from inspecting the DOM, which shows the current state after JavaScript has run.
Important: "View Page Source" shows the initial HTML from the server, while "Inspect Element" shows the current DOM after JavaScript modifications.
Chrome
- Right-click anywhere on the page (not on an image or link)
- Select "View Page Source" from the context menu
- A new tab will open showing the raw HTML
- Search for content that should be server-rendered (like the timestamp in our test component)
Keyboard shortcut: Ctrl+U (Windows/Linux) or ⌘+Option+U (Mac)
Firefox
- Right-click anywhere on the page
- Select "View Page Source"
- A new window will open with the raw HTML
Keyboard shortcut: Ctrl+U (Windows/Linux) or ⌘+U (Mac)
Safari
- First, enable the Develop menu: Safari → Preferences → Advanced → check "Show Develop menu in menu bar"
- Then go to Develop → Show Page Source
Keyboard shortcut: Option+⌘+U
Edge
- Right-click on the page
- Select "View Source"
Keyboard shortcut: Ctrl+U
What to Look For
In the page source, look for:
- The server timestamp from our test component
- The text "Client hydrated: No" (which will be replaced with "Yes" after JavaScript runs)
- All the static content that should be pre-rendered
If you see these elements in the source, it confirms the page was rendered on the server before being sent to the browser.
Remember that for a Netlify static site, "server-rendering" actually means the HTML was pre-generated at build time, not generated on-demand for each request.