Thank you for the tips. The render pipeline itself is fine I think. It has to do with some features I used which doesn't support very well in webgl. And honestly, now I don't really want to spend so much time fixing it. In the end, these web optimisation skills are of no use, right? since most of us will be publishing our actual game on steam, and not on web.