Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Do you suppose it could be the fault of Itch? Because otherwise this belongs in General Development.

That said, what browsers did you test with during development? You're testing with the same browsers now? And it's only slow when uploaded to Itch, not on your desktop? Are you loading any resources from 3rd-party servers?

No, I don't suppose that.
I runned it on both Chrome and Firefox during development and now after I uploaded it here on Itch. The result is the same on both browsers, however, I noticed that the better my internet connection is the better the game's performance gets. As for you other question, I 'm not using any resources outside the projet's files.

Itch.io does mention (on "Uploading HTML5 games") something about large HTML5 run better when they are disributed as downloadable instead, but the problem is I'm not that experienced when it comes to converting many files into an actual application. I also  wonder if there are technologies  out there that are beginner friendly and  can help me do just that.

Here is my current project structure: 


There are people uploading web games here that are hundreds of megabytes in size. While 30MB is nothing to sneeze at (my biggest so far are under 10), it's odd that you'd have such big problems. Are you loading assets repeatedly during play? It's a mistake I've seen a lot of beginners make.

I'm not 100% sure on how to interpret  "loading assets repeatedly", but I think u are asking about if I'm adding/removing new objects/elements in the DOM from time to time during the game's lifetime. If that is the case, then yes.

I mean every frame, not from time to time. I've seen beginners literally loading a sprite from disk anew every single frame.

I'm sorry, I don't know how to reply. I don't understand what " loading a sprite from disk anew every single frame" actually means. Is there an example that I can see somewhere ?

(+1)

You might want to get a more experienced developer look at your code.

Thanks for your advice and for trying to help me. I will do that if I find someone. If it's ok I do have one last question. What is the max size of the project that I can upload to Itch if I decide to go with "Downloadable" option?

(+1)

The limit is 1GB by default, two if you use Butler. You can also contact support and ask for an increase if that's not enough.