iPhone 上的 jquery 移动加载栏

发布于 2024-12-11 17:15:41 字数 1564 浏览 2 评论 0原文

我注意到,当我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

软甜啾 2024-12-18 17:15:41

我已将所有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文