Joe
Reloading Wasm or Reloading Page
hello everyone. I am trying to host some games I made with Raylib and Zig and compiled to wasm on my website. It kinda works right now, when I first enter the Gamepage the game loads just fine and works fine, but when I route some other page on my website and back to my game page the game doesnt work anymore (using Solid Router). To get it to Work again i have to reload the page. So now I either have to find a way to reload the page when I get rerouted to it by solid router or find a way how to properly unload and reload the wasm an js code.
I have a page for my game which contains the HTML Elements I need and a function
createScriptLoader
to add the required Js scripts to the head of the page when I enter my TestGame Page and removed if i leave it:
6 replies