Skip to content

Instantly share code, notes, and snippets.

@miguelfrias
Last active May 9, 2016 23:56
Show Gist options
  • Save miguelfrias/08f5d36a3b1fe668ae97fc180d73a1c2 to your computer and use it in GitHub Desktop.
Save miguelfrias/08f5d36a3b1fe668ae97fc180d73a1c2 to your computer and use it in GitHub Desktop.

Revisions

  1. miguelfrias revised this gist May 9, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -10,3 +10,6 @@ AngularJS does some work on your behalf, but not all. The following need to be m
    - Timeouts
    - Variables referencing DOM in directives
    - Dodgy jQuery plugins, e.g. those that don’t have handlers reacting to the JavaScript $destroy event

    ## More
    http://www.slideshare.net/futureinsights/angular-performance-then-now-and-the-future-todd-motto/57-avoidingDOMltersfunction_SomeCtrllter_date_passed_in
  2. miguelfrias revised this gist May 9, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    ## Performance
    [Disable Debug Data](https://docs.angularjs.org/guide/production#disabling-debug-data)
    - [Disable Debug Data](https://docs.angularjs.org/guide/production#disabling-debug-data)
    - Use track by in every ng-repeat

    ## Cleaning
    AngularJS does some work on your behalf, but not all. The following need to be manually cleaned up:
  3. miguelfrias created this gist May 9, 2016.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ## Performance
    [Disable Debug Data](https://docs.angularjs.org/guide/production#disabling-debug-data)

    ## Cleaning
    AngularJS does some work on your behalf, but not all. The following need to be manually cleaned up:

    - Any watchers that are not bound to the current scope (e.g. bound to $rootScope)
    - Intervals
    - Timeouts
    - Variables referencing DOM in directives
    - Dodgy jQuery plugins, e.g. those that don’t have handlers reacting to the JavaScript $destroy event