Keep in mind that some shaders are limited on the web, and browsers usually run games on a single thread, so it's perfectly normal if it works on desktop but not in the browser.
Also, remember that Godot lets you run your game directly in the browser once you've configured the Web export. You can then use Remote Debug to inspect and debug the HTML5 version, which makes tracking down web-specific issues much easier.