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

  1. Right-click anywhere on the page (not on an image or link)
  2. Select "View Page Source" from the context menu
  3. A new tab will open showing the raw HTML
  4. 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

  1. Right-click anywhere on the page
  2. Select "View Page Source"
  3. A new window will open with the raw HTML

Keyboard shortcut: Ctrl+U (Windows/Linux) or ⌘+U (Mac)

Safari

  1. First, enable the Develop menu: Safari → Preferences → Advanced → check "Show Develop menu in menu bar"
  2. Then go to Develop → Show Page Source

Keyboard shortcut: Option+⌘+U

Edge

  1. Right-click on the page
  2. Select "View Source"

Keyboard shortcut: Ctrl+U

What to Look For

In the page source, look for:

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.