Example 4 - Defer with Timer

This example demonstrates a defer block that loads content after a specific time delay.

⏱️ Timer Demo

The deferred content below will load after 3 seconds:

2seconds remaining...

⏳ Waiting for timer to complete...

How Timer Defer Works

The @defer (on timer(3s)) block waits for the specified duration before loading the content.

You can specify different time units:

  • timer(1s) - 1 second
  • timer(500ms) - 500 milliseconds
  • timer(2m) - 2 minutes