Hello - I have a page in my application that loads hundreds of records. Each record has a row in a Repeater with Form elements like Checkbox, TextInput, Textarea, etc. I am trying to find a way to speed up the initial page rendering. The page can take between 15-30s to load in production. I've read that with Laravel/Livewire, displaying lots of views on one page slows down the rendering time. My page looks something like this:
<x-filament::page> @foreach ($categories as $category) <livewire:filament.component-xyz dataId="{{ $data->id }}" /> @endforeach // ... more categories</x-filament::page>
<x-filament::page> @foreach ($categories as $category) <livewire:filament.component-xyz dataId="{{ $data->id }}" /> @endforeach // ... more categories</x-filament::page>
I have run
php artisan filament:optimize
php artisan filament:optimize
, which the documentation says caches the Filament views. It seemed to help a little but did not make a huge improvement.
Does anyone have any ideas for how I could speed up the initial page rendering when it involves hundreds (maybe even 1000+) of Form elements? Thank you!