Browse Source

switch config.js values to be present directly in index.html, loaded server-side during page render instead of as a separate request

master
Aaron van Meerten 9 years ago
parent
commit
4dd82b3376
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      index.html

+ 1
- 1
index.html View File

5
         window.indexLoadedTime = window.performance.now();
5
         window.indexLoadedTime = window.performance.now();
6
         console.log("(TIME) index.html loaded:\t", indexLoadedTime);
6
         console.log("(TIME) index.html loaded:\t", indexLoadedTime);
7
     </script>
7
     </script>
8
-    <script src="config.js?v=15"></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
8
+    <script><!--#include virtual="config.js" --></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
9
     <script src="utils.js?v=1"></script>
9
     <script src="utils.js?v=1"></script>
10
     <!--#include virtual="connection_optimization/connection_optimization.html" -->
10
     <!--#include virtual="connection_optimization/connection_optimization.html" -->
11
     <script src="connection_optimization/do_external_connect.js?v=1"></script>
11
     <script src="connection_optimization/do_external_connect.js?v=1"></script>

Loading…
Cancel
Save