May 6, 2024
0
Level 27
Injecting a CDN javascript only when component is used
In filament, I'm able to add @assets and @endassets in the component's blade file to inject a CDN script only on pages where the component is used, see https://livewire.laravel.com/docs/components#loading-assets
I assumed it would also work in Livewire, but it could not, any idea what I'm missing in my layout.blade.php? I do have @livewireStyles and @livewireScripts
Please or to participate in this conversation.