|
@@ -51,9 +51,14 @@ const APP = {
|
51
|
51
|
status: "initialized",
|
52
|
52
|
handler: null
|
53
|
53
|
},
|
|
54
|
+ // Used for automated performance tests
|
|
55
|
+ performanceTimes: {
|
|
56
|
+ "index.loaded": window.indexLoadedTime
|
|
57
|
+ },
|
54
|
58
|
UI,
|
55
|
59
|
settings,
|
56
|
60
|
conference,
|
|
61
|
+ connection: null,
|
57
|
62
|
API,
|
58
|
63
|
init () {
|
59
|
64
|
this.keyboardshortcut =
|
|
@@ -98,8 +103,9 @@ function obtainConfigAndInit() {
|
98
|
103
|
// Get config result callback
|
99
|
104
|
function(success, error) {
|
100
|
105
|
if (success) {
|
101
|
|
- console.log("(TIME) configuration fetched:\t",
|
102
|
|
- window.performance.now());
|
|
106
|
+ var now = APP.performanceTimes["configuration.fetched"] =
|
|
107
|
+ window.performance.now();
|
|
108
|
+ console.log("(TIME) configuration fetched:\t", now);
|
103
|
109
|
init();
|
104
|
110
|
} else {
|
105
|
111
|
// Show obtain config error,
|
|
@@ -118,7 +124,8 @@ function obtainConfigAndInit() {
|
118
|
124
|
|
119
|
125
|
|
120
|
126
|
$(document).ready(function () {
|
121
|
|
- console.log("(TIME) document ready:\t", window.performance.now());
|
|
127
|
+ var now = APP.performanceTimes["document.ready"] = window.performance.now();
|
|
128
|
+ console.log("(TIME) document ready:\t", now);
|
122
|
129
|
|
123
|
130
|
URLProcessor.setConfigParametersFromUrl();
|
124
|
131
|
APP.init();
|