Make sure you Notice that the scripts will probably be run only once upon the initial render in the element. If you must run a JavaScript perform later - emit the party within the part and hear it in JavaScript as explained below) https://laravel-livewire.com/docs/2.x/inline-scripts