Artem2P
In the future, for more precision, click here:

If you click on "Remote Debug" does your game run fine?

Just being on 4.0 might be causing some issues. I know that web exports have gone through a lot of work throughout 4.X development. Maybe try making a backup of your project and exporting it with 4.1.2, which is the latest stable release. Also, I was hoping to see whether or not you were using Godot with C#, as 4.X C# projects still do not have web support.
If 4.1.2 doesn't make things any better for you, you're gonna have to debug it. There are different ways you can try to see what's wrong. Make sure that your export has Debug enabled.