index.html <script> tag doesn't work?
Hi I'm using solidStart. The script tag in the index.html doesn't appear to be working. I add a console log in it and don't see the console log on either the client or server.
7 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
lol stay liquid.
I think I need to the run script I'm actually trying to run in index.html. Don't think I can import Dynamic into index.html
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
index.html is here:
I think I need my script to run in that location. I'll try root.jsx
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah I guess the Dynamic component in root.tsx works too.
I was just adding a script to check local storage before the page loads. If that item is in local storage then a class os added to documentElement. That works..... THANK YOU liquid
I was just adding a script to check local storage before the page loads. If that item is in local storage then a class os added to documentElement. That works..... THANK YOU liquid
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View