Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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