Skip to content

Instantly share code, notes, and snippets.

@gdumitrescu
Created January 22, 2015 07:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdumitrescu/0da0cafee84187dfeac6 to your computer and use it in GitHub Desktop.
Save gdumitrescu/0da0cafee84187dfeac6 to your computer and use it in GitHub Desktop.
AngularJS 1.3 performance optimizations - http://blog.thoughtram.io/
'use strict';
angular
.module('app', [])
.config(function($httpProvider) {
// deferring the resolution of XHR calls to the next tick
$httpProvider.useApplyAsync(true);
})
.config(['$compileProvider', function($compileProvider) {
// disable debug info and .reloadWithDebugInfo() method
$compileProvider.debugInfoEnabled(false);
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment