Angularjs

Increase Your Performance In Production With AngularJS

Posted by Weston Ganger on May 10, 2016

There are two things you should do with your AngularJS 1.x app before deploying to production to increase your performance.

First we need to disable debugging data.


/* app.js */

yourApp.config(['$compileProvider'], function($compileProvider){
  $compileProvider.debugInfoEnabled(false);
}]);

Secondly we should turn on strict-di mode to get performance increases to dependency injection.


<div ng-app="yourApp" ng-strict-di>
  <!-- etc. -->
</div>


Related External Links:


Posted in Angular and Tagged with angularjs 


Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts