On Inertia link navigation js file (script.bundle.js) not loading and js based functionalty not working #883
Unanswered
clickervinod
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i am using inertiajs and vue3 with metronic html admin theme https://preview.keenthemes.com/metronic8/demo8/index.html
this them uses https://preview.keenthemes.com/metronic8/demo8/assets/js/scripts.bundle.js js file to function diffrent feature of this theme.
Now my problem is when i navigate to diffrent page using inertia-link above js file not re initialize and many function not working but when i reload/refresh page it start working.
how to use this js file so thae on each inertia navigation this file re init properly to wot\rk this theme.
Plz help iam struggling with this problem from many months but not able to fix it
i have tryed to add this
$.getScript("http://larainertiavue3.test/assets/js/scripts.bundle.js");
in created hook on main layout.vue file it is working but i have to click same link 2 time to load js to work. see this animation
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions