0

I am currently developing an application for mobile devices made in ANGULAR.js. This works with requests $http, uploading files .json more than 16000 records, and weighing more than 10mb. I want to know a way to compress the json file or something so not much despite my application. I need ideas for my application performance. if I can recommend examples would be very grateful.I am new in Angular.js.

I'm not sure if gzip is a good solution. if it could give me an example where you can see how the request is made to a Web service and how it can help to compress information.

yavg
  • 2,123
  • 2
  • 25
  • 65
  • 1
    Yes, gzip is perfect. See: http://stackoverflow.com/questions/702124/enable-iis7-gzip – Max Sorin May 16 '16 at 21:04
  • @MaxSorin I need a practical example in which you can make an example for angular.js – yavg May 16 '16 at 21:11
  • The client takes the gzip header supplied by the server and knows how to decode the content. Angular does not see or care that the content of the response was zipped. – Max Sorin May 16 '16 at 21:18
  • 1
    Look into this: http://stackoverflow.com/questions/34251856/compress-requests-from-angular-to-web-api for uploading files from the app. – Max Sorin May 16 '16 at 21:22
  • @MaxSorin It is difficult, and I need something similar but in AngularJS – yavg May 16 '16 at 22:33

0 Answers0