Subversion Repositories cheapmusic

Rev

Rev 120 | Rev 130 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 120 Rev 129
Line 10... Line 10...
10
                      { fn:"<?php echo timeStampUrl("js/input-clearer.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/input-clearer.min.js", true)); ?>" },
10
                      { fn:"<?php echo timeStampUrl("js/input-clearer.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/input-clearer.min.js", true)); ?>" },
11
                      { fn:"<?php echo timeStampUrl("js/paginate.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/paginate.min.js", true)); ?>" },
11
                      { fn:"<?php echo timeStampUrl("js/paginate.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/paginate.min.js", true)); ?>" },
12
                      { fn:"<?php echo timeStampUrl("js/lazysizes.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/lazysizes.min.js", true)); ?>" },
12
                      { fn:"<?php echo timeStampUrl("js/lazysizes.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/lazysizes.min.js", true)); ?>" },
13
                      { fn:"<?php echo timeStampUrl("js/dr.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/dr.min.js", true)); ?>" }
13
                      { fn:"<?php echo timeStampUrl("js/dr.min.js") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "js/dr.min.js", true)); ?>" }
14
                    ];
14
                    ];
-
 
15
 
-
 
16
    if (window.performance) {
-
 
17
        var timeSincePageLoad = Math.round(performance.now());
-
 
18
        window.dataLayer.push({'event': 'timing', 
-
 
19
            'timingVar': 'page load',
-
 
20
            'timingValue': timeSincePageLoad,
-
 
21
            'timingCategory': 'client',
-
 
22
            'timingLabel': 'load'
-
 
23
          });
-
 
24
    }
15
 
25
 
16
    for (i=0; i < linkArr.length; i++) {
26
    for (i=0; i < linkArr.length; i++) {
17
        var element = document.createElement("link");
27
        var element = document.createElement("link");
18
        element.rel = "stylesheet";
28
        element.rel = "stylesheet";
19
        element.type = "text/css";
29
        element.type = "text/css";