thuiop / magium-dev

MIT License
13 stars 4 forks source link

Fix issues with stats not loading #46

Closed thuiop closed 2 months ago

thuiop commented 2 months ago

I had to put the loading of the stats module in the outline directly and tinker a few things. Let me know if it works as you expected. Closes #38

himanshunaidu commented 2 months ago

The solution definitely works. Having said that, I feel like adding an event listener to the main page for every DOMContentLoaded might not be the best approach right?

Another way I saw this work is to do the addition of the event listeners inside stats.ejs itself as a script tag. But that would definitely be much more work.

It may take quite a while for me to be able to get back to this, so if you are fine with this, we can go ahead with this for now.