SSR Demo - Server Side Rendering

Data loaded on server before sending HTML to client

← Back

📊 Performance Information

2004ms
Server processing time (~2s API)
Excellent
Excellent SEO Score
Fast
Fast First Contentful Paint

💡 Note: Although API takes 2 seconds, users see content immediately because data was pre-rendered on server!

🔍 SSR Characteristics

✅ Advantages:

  • • Good SEO (HTML has data)
  • • Fast First Contentful Paint
  • • Works when JS is disabled
  • • Suitable for news, blogs

❌ Disadvantages:

  • • Higher server load
  • • Slower Time to Interactive
  • • Depends on server performance
  • • Hydration can be slow

🖥️ Server Information

Render Time: 2025-06-28T15:09:26.984Z
Posts Count: 10
Server Load Time: 2004ms
Rendering: Server Side

📄 Blog List (SSR)

Post 1 - Loaded from SSR

Content of post 1. This is data fetched from server side before sending HTML to client.

By: Author 1May 28, 2025

Post 2 - Loaded from SSR

Content of post 2. This is data fetched from server side before sending HTML to client.

By: Author 2March 8, 2025

Post 3 - Loaded from SSR

Content of post 3. This is data fetched from server side before sending HTML to client.

By: Author 3June 26, 2025

Post 4 - Loaded from SSR

Content of post 4. This is data fetched from server side before sending HTML to client.

By: Author 4June 15, 2025

Post 5 - Loaded from SSR

Content of post 5. This is data fetched from server side before sending HTML to client.

By: Author 5April 1, 2025

Post 6 - Loaded from SSR

Content of post 6. This is data fetched from server side before sending HTML to client.

By: Author 6March 18, 2025

Post 7 - Loaded from SSR

Content of post 7. This is data fetched from server side before sending HTML to client.

By: Author 7June 22, 2025

Post 8 - Loaded from SSR

Content of post 8. This is data fetched from server side before sending HTML to client.

By: Author 8April 1, 2025

Post 9 - Loaded from SSR

Content of post 9. This is data fetched from server side before sending HTML to client.

By: Author 9April 10, 2025

Post 10 - Loaded from SSR

Content of post 10. This is data fetched from server side before sending HTML to client.

By: Author 10June 26, 2025

💻 Code Example

// SSR by default in Next.js App Router
// No 'use client' directive needed

export default async function SSRDemo() {
  // Fetch data on server before rendering
  const data = await fetchData();

  return (
    <div>
      {data.map(item => (
        <div key={item.id}>{item.title}</div>
      ))}
    </div>
  );
}

// This runs on server and data is included in HTML

🚀 SEO Benefits

This page has complete HTML with data when loaded, great for SEO!

View Page Source to see data is already in HTML