With the release of Angular 1.3, a new method called debugInfoEnabled()
was introduced which can significantly improve performance when set to false
in the application config function:
myApp.config(['$compileProvider', function ($compileProvider) {
$compileProvider.debugInfoEnabled(false);
}]);
Unfortunately, Angular 1.3 discontinued support for IE8. This presents an issue for applications like mine that must run on IE8. As a result, I have had to stick with version 1.2.
If you're facing the same dilemma and need to replicate the functionality of debugInfoEnabled()
in Angular 1.2, here are some aspects you can focus on:
- Avoid creating
ng-scope
/ng-isolated-scope
CSS classes while generating new scopes - Omit attaching binding data and ng-class CSS class to elements using ngBind, ngBindHtml or {{...}} interpolations
One potential solution could involve forking the angularjs repository and backporting the desired feature to version 1.2. This would require maintaining updates from the original source.
If you have any insights or suggestions, they would be much appreciated.