Created
January 9, 2014 10:46
-
-
Save vkaravir/8332346 to your computer and use it in GitHub Desktop.
The index file I used when testing PhoneGap/Cordova load times of jQuery and jQuery Mobile. See http://mobileicecube.com/blog/effect-of-jquery-and-jquery-mobile-on-phonegapcordova-startup-speed
for details.
This file contains 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
<html> | |
<head> | |
<script> | |
var startTime = new Date(); | |
</script> | |
<meta charset="utf-8" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> | |
<title>Hello World</title> | |
<!-- | |
<link rel="stylesheet" type="text/css" href="js/jquery.mobile-1.3.2.min.css"> | |
--> | |
</head> | |
<body> | |
<script type="text/javascript" src="cordova.js"></script> | |
<!-- | |
<script src="js/jquery-2.0.3.min.js"></script> | |
<script src="js/jquery-1.9.1.min.js"></script> | |
<script src="js/jquery.mobile-1.3.2.min.js"></script> | |
--> | |
<script type="text/javascript"> | |
document.addEventListener("deviceready", function() { | |
console.log(new Date().getTime() - startTime.getTime()); | |
}, false) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment