You should Observe that the scripts will likely be run only once upon the very first render in the element. If you must run a JavaScript function afterwards - emit the celebration with the element and listen to it in JavaScript as explained listed here) https://laravel-livewire.com/docs/2.x/inline-scripts