Created
January 15, 2013 22:47
-
-
Save zbraniecki/4542904 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/homescreen/js/page.js b/apps/homescreen/js/page.js | |
index f9a7635..e1d64fd 100644 | |
--- a/apps/homescreen/js/page.js | |
+++ b/apps/homescreen/js/page.js | |
@@ -624,6 +624,8 @@ Page.prototype = { | |
* @param{Object} DOM element | |
*/ | |
tap: function pg_tap(elem) { | |
+ console.log('User tapped an icon'); | |
+ console.log(new Date().getTime()); | |
if (Homescreen.isInEditMode()) { | |
if (elem.className === 'options') { | |
var icon = GridManager.getIcon(elem.parentNode.dataset); | |
diff --git a/shared/js/perf.js b/shared/js/perf.js | |
index abd6911..53db52c 100644 | |
--- a/shared/js/perf.js | |
+++ b/shared/js/perf.js | |
@@ -40,6 +40,8 @@ function PerfTest() { | |
} | |
this.addPerformanceAPINumbers = function() { | |
+ console.log('The timestamp at the moment is: '+new Date().getTime()); | |
+ console.log('navigationStart was ago: '+performance.now()); | |
for (var i in performance.timing) { | |
if (performance.timing[i] === 0) { | |
this.perfData['doc']['performance.*'][i] = [0, 0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment