Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

laracoft's avatar

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

0 likes
0 replies

Please or to participate in this conversation.