-
Notifications
You must be signed in to change notification settings - Fork 4
/
example_fast.html
71 lines (62 loc) · 2.68 KB
/
example_fast.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jquery.mobile.fastButtons.js Example - With jquery.mobile.fastButtons</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css">
<meta name="viewport" content="width=device-width">
</head>
<body>
<div data-role="page" id="fast1">
<div data-role="header" data-id="header" data-position="fixed" data-tap-toggle="false">
<a href="index.html" data-ajax="false">Back to Metrics</a>
<h1>jquery.mobile.fastButtons.js Fast Example Page 1</h1>
</div><!-- /header -->
<div data-role="content">
<h2>This Page DOES Implement jquery.mobile.fastButtons</h2>
<p>
That click event should have been replaced with vclick, which is much faster in environments like iOS!
</p>
<p>
You can transition back again using the button below, or try the slow example page below to compare.
</p>
<br /><br />
<a href="#fast2" data-role="button">Go to a new page quickly!</a>
<br /><br /><br /><br />
<h2>Want to see what the slow way is like?</h2>
<p>
Click the button below to go to an example page that does not implement jquery.mobile.fastButtons.
</p>
<br />
<a href="example_slow.html" data-ajax="false" data-role="button">Go to the slow example page</a>
</div><!-- /content -->
</div><!-- /page -->
<div data-role="page" id="fast2">
<div data-role="header" data-id="header" data-position="fixed" data-tap-toggle="false">
<a href="index.html" data-ajax="false">Back to Metrics</a>
<h1>jquery.mobile.fastButtons.js Fast Example Page 2</h1>
</div><!-- /header -->
<div data-role="content">
<h2>This Page DOES Implement jquery.mobile.fastButtons</h2>
<p>
Simply including the jquery.mobile.fastButtons.js after jQuery Mobile will replace all the default slow click events with fast vclick events.
</p>
<p>
Try transitioning to another page using a button that has been modified by jquery.mobile.fastButtons.
</p>
<br /><br />
<a href="#fast1" data-role="button">Go to a new page quickly!</a>
<br /><br /><br /><br />
<h2>Want to see what the slow way is like?</h2>
<p>
Click the button below to go to an example page that does not implement jquery.mobile.fastButtons.
</p>
<br />
<a href="example_slow.html" data-ajax="false" data-role="button">Go to the slow example page</a>
</div>
</div><!-- /page -->
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.js"></script>
<script src="jquery.mobile.fastButtons.js"></script>
</body>
</html>