Meta Refresh Demo

How Meta Refresh Works:

1. Browser reads the meta tag - When the page loads

2. Timer starts - Counts down the specified seconds

3. Page reloads - Automatically refreshes the entire page

4. Process repeats - Creates a continuous refresh cycle

Current Page Status:

Last Updated: 10/27/2025, 6:30:19 PM

Random Data: 901

Server Time: 2025-10-27T18:30:19.061Z

Meta Refresh Examples:

Basic Refresh (30 seconds):

<meta http-equiv="refresh" content="30">

Fast Refresh (5 seconds):

<meta http-equiv="refresh" content="5">

Redirect After Refresh:

<meta http-equiv="refresh" content="10; url=/other-page">

For Airport Displays:

Flight Information: Refresh every 30-60 seconds

Weather Updates: Refresh every 5-10 minutes

Emergency Alerts: Refresh every 10-15 seconds

General Information: Refresh every 2-5 minutes

Pros and Cons:

✅ Pros:

  • Works without JavaScript
  • Simple to implement
  • Always gets fresh data
  • Works in any browser
  • No complex setup needed

❌ Cons:

  • Flashes/blinks on refresh
  • Reloads entire page
  • Can be jarring for users
  • Uses more bandwidth
  • No smooth transitions

Implementation in Next.js:

Method 1 - In layout.tsx:

<meta http-equiv="refresh" content="30" />

Method 2 - In specific pages:

<Head><meta http-equiv="refresh" content="30" /></Head>

Method 3 - Conditional refresh:

{isDisplayMode && <meta http-equiv="refresh" content="30" />}