i have big json file that i load in the index.js On page load (javascript) file which leads to increase in the time of loading the page.
What should i use to reduce this so that the page loads fast?
i have big json file that i load in the index.js On page load (javascript) file which leads to increase in the time of loading the page.
What should i use to reduce this so that the page loads fast?
2
Answers
You need to enable gzip on your server level, In configuration compressableMimeType you can specify which type of data to be compressed.
You can visit http://viralpatel.net/blogs/enable-gzip-compression-in-tomcat/ for configuration steps
In your Apache configuration, set mod_deflate parameters. See here for complete doc
Depending on your configuration, apache config could be located:
Windows C:Program FilesApache GroupApache2confhttpd.conf
Linux: /etc/httpd/conf/httpd.conf