iPhone 上的 jquery 移动加载栏
我注意到,当我在 iPhone 上加载以下代码时,URL 的页面加载速度保持在 10% 左右。我可以看到该页面已完全加载。页面上的代码很少。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome</title>
<link href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js" type="text/javascript"></script>
</head>
<body>
<div data-role="page" id="page">
<div data-role="content">
<div data-role="controlgroup">
<a href="mob_date.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Check Availability</a>
<a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right">About Us</a>
<a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right">Gallery</a>
<a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right">Find Us</a>
</div>
</div>
</div>
</body>
</html>
I have noticed that when I load the folowing code on iphone the url stays loading the page at about 10%. The page does fully load that I can see. Very little code on the page.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome</title>
<link href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js" type="text/javascript"></script>
</head>
<body>
<div data-role="page" id="page">
<div data-role="content">
<div data-role="controlgroup">
<a href="mob_date.html" data-role="button" data-icon="arrow-r" data-iconpos="right">Check Availability</a>
<a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right">About Us</a>
<a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right">Gallery</a>
<a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right">Find Us</a>
</div>
</div>
</div>
</body>
</html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已将所有 jQuery 文件存储在我的服务器上。 iPhone 似乎不喜欢某些来自安全连接的文件,而另一些则来自不安全的连接。
I have stored all the jQuery files on my server. It seems like the iphone does not like some files coming form a secure connection an others form non secure.