Unity webgl non development build does not work but development build work fine.

So i’ve been making a game and run it on a website which was made for runing webgl builded games on a wordpress site by a few of my fellow studets at university. When i build the game in development mode the game runs perfectly on the website but when i build the game in non development mode, the build finishes successfully but on the website i can only see a fully black starting screen when i run the game.

Try setting compression to gzip under player settings