Forum

Accelerate the browser loads the JSON file method

05 December 2014 08:02 #621


We know that 3D data is usually large, loading velocity must be considered.




But Blend4web is a good team, I even believe that you can provide a better solution, thanks again.
05 December 2014 10:14 #623
Hi,

Indeed compressing the json and bin files can greatly decrease their size. Luckily browsers do this automatically. All you need is to enable gzip mode on the server side.

E.g. for the Nginx webserver it could be as follows:

        
gzip on;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/x-javascript text/javascript application/octet-stream;


Please read this for setting up the Apache webserver.
Development Lead | Twitter
05 December 2014 10:41 #624
You can check the results in the browser console. As you can see JSON compression is 10-fold and the BIN file compression is 2-fold.

Development Lead | Twitter
 
Please register or log in to leave a reply.