You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to inject a javascript file inside head tag and before any content loaded in the page. But when I'm using @Vite directive to include js files it is always executing after all the content load. For example, I'm trying to assign config values in the config.js file at top of the page and access the values inside body tag. Is there any way I can do this? I have also asked in Stackoverflow but the response is not working for me how-to-inject-any-js-file-inside-head-tag-in-laravel-v9-19-in-development-server
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to inject a javascript file inside head tag and before any content loaded in the page. But when I'm using @Vite directive to include js files it is always executing after all the content load. For example, I'm trying to assign config values in the config.js file at top of the page and access the values inside body tag. Is there any way I can do this? I have also asked in Stackoverflow but the response is not working for me
how-to-inject-any-js-file-inside-head-tag-in-laravel-v9-19-in-development-server
Beta Was this translation helpful? Give feedback.
All reactions