Please Notice that the scripts will be run just once on the main render from the component. If you have to run a JavaScript function afterwards - emit the party within the part and hear it in JavaScript as described here) https://laravel-livewire.com/docs/2.x/inline-scripts