Skip to content

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 for details.
var startTime = new Date();
<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/">
<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/"></script>
<script type="text/javascript">
document.addEventListener("deviceready", function() {
console.log(new Date().getTime() - startTime.getTime());
}, false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.