Mahmoud Al-HabashOpen to new projects
  • WorkWork
  • ServicesServices
  • LabLab
  • WritingWriting
  • ContactContact
Amman--:--عربي
Writing/Livewire

The @island Directive: Partial Hydration in Livewire v4

Segment expensive parts of views for better performance.

1 February 20261 min readLivewireاقرأ بالعربية

On this page

  1. Usage
  2. With Loading

The @island directive enables partial hydration for slow components.

Usage

blade
<div>
    <h1>Dashboard</h1>
    <p>Welcome back!</p>
    
    @island
        <livewire:expensive-chart />
    @endisland
</div>

With Loading

blade
@island
    <livewire:analytics />
@loading
    <div class="skeleton">Loading...</div>
@endisland
All articles

Keep reading

  • Authorization in Livewire v4 Components1 February 20261 min read
  • Blaze Pre-Compiler: Massive Performance Gains in Livewire v41 February 20261 min read
  • Building a Bookmark Feature with Livewire v41 February 20261 min read