We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d32c3 commit c1a874eCopy full SHA for c1a874e
ng-idle-apply-timing.js
@@ -3,8 +3,10 @@
3
// More complicated expression logic - longer cycle
4
// Also creates CPU profile for debugging bottlenecks (Chrome DevTools)
5
6
+// assumes the angular application is at least around the document's body
7
+
8
/* global angular, performance */
-angular.element(document).injector().invoke(function timeApply($rootScope) {
9
+angular.element(document.body).injector().invoke(function timeApply($rootScope) {
10
console.profile('$apply');
11
var started = performance.now();
12
$rootScope.$apply();
0 commit comments