Skip to content

Instantly share code, notes, and snippets.

@vkaravir
Created January 9, 2014 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkaravir/8332346 to your computer and use it in GitHub Desktop.
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.
<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