I have a large JSON data string that's 757KB. I tried GZIP'ing it, which successfully reduced file size down to 143KB. But, in it's GZIP'ed state, my JQUERY function can't make use of the compressed JSON data.
Any suggestions on how to compress JSON in an IIS/ASP environment and still be able to use the JSON data in a JQUERY function?
Hope this helps:
inetsvr\config\applicationhost.config
<dynamicTypes>
tag.Be sure you have
<add mimeType="application/json" enabled="true" />
in the list.If you pass HTML, you are doing it wrong. Pass the data and render it client side.
If you are passing plain data, you are probably passing too much of it; try splitting it in more requests, in order to let the user show part of the whole information while still loading it.