I read that you used Godot engine for this game. What version did you use?
Viewing post in Escargot 2: The Slimy Sequel comments
I had the same issue with gamemakers web export. It was really laggy and ran terribly. Godot web seems much better so far.
I'm new to godot so this could be wrong but, I think it runs smoothly bc I'm setting everything's physics process to false initially. Then I only enable objects that are inside the cameras view.