Please Notice that the scripts will probably be run only once on the first render from the component. If you should run a JavaScript function afterwards - emit the celebration with the part and listen to it in JavaScript as explained below) https://laravel-livewire.com/docs/2.x/inline-scripts