How can I load external .js script on specific route?
Adding <Link> doesn't help. I can see it in DOM, but it never sends a request.
5 Replies
Is it even possible, easily? Or should I start having fun with DOM?
GitHub
solid-primitives/packages/script-loader at main · solidjs-community...
A library of high-quality primitives that extend SolidJS reactivity. - solid-primitives/packages/script-loader at main · solidjs-community/solid-primitives
I've completely forgot about the primitives package. Thanks a lot!
👍
I wrote that package 😉
Just tested, works flawlessly, thanks!