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