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
var NAMESPACE = NAMESPACE || {}; | |
NAMESPACE.gaSpeedTrackingJsLoadStart = (new Date()).getTime(); | |
/* All JS ... */ | |
/* Encapsulate "use strict" to this part of the code, while others can still be unstrict. */ | |
(function () { | |
"use strict"; | |
/* Track JS Parsing time (start was set at the Beginning of the JS) */ |
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
function isRetina(){ | |
return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
('matchMedia' in window && matchMedia("(-moz-device-pixel-ratio:1.0)").matches)) | |
} |
NewerOlder