使用jQuery的移動即時通訊使用持久性頁眉和頁腳。頁腳導航有標籤,當你點擊一個標籤時,它通過ajax加載一個頁面。問題在於從一個頁面到另一個頁面的轉換,這是使用特定ID加載div的ajax,非常緩慢。頁面轉換需要2-5秒。當我點擊一個標籤時,它會突出顯示不同的顏色,但沒有任何反應,然後在幾秒鐘後發生轉換。有時候,如果您單擊以快速佈局中斷和頁腳消失。我使用最新版本的jQuery Mobile在ipad上做這件事。 jquery mobile是否真的很慢?將等待,直到ios5使所有的區別?Jquery Mobile - 緩慢頁面轉換
UPDATE
下面是一個代碼片段:
<div data-role="page" id="page1">
<div data-role="header" data-position="fixed">
<h1>Page Title</h1>
<a href="#dialog" data-transition="slidedown" data-icon="check">Add</a>
</div>
<div data-role="content">
<ul data-role="listview">
<li data-role="list-divider"><span class="ui-li-count">2</span></li>
<li>
<h3>Stephen Weber</h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>PM</p>
</li>
</ul>
<div data-role="footer" class="nav-glyphish-example" data-id="myfooter" data-position="fixed">
<div data-role="navbar" class="nav-glyphish-example" data-grid="b">
<ul>
<li><a href="#page1" data-transition="reverse slide" id="chat" data-icon="custom" class="ui-btn-active ui-state-persist">Link 1</a></li>
<li><a href="#page2" data-transition="slide" id="email" data-icon="custom">Link2</a></li>
<li><a href="#page3" data-transition="slide" id="skull" data-icon="custom">Link 3</a></li>
</ul>
</div>
</div>
<div data-role="page" id="page2">
<div data-role="header" data-position="fixed">
<h1>Page Title</h1>
<a href="#dialog" data-transition="slidedown" data-icon="check">Add</a>
</div>
<div data-role="content">
<ul data-role="listview">
<li data-role="list-divider"><span class="ui-li-count">2</span></li>
<li>
<h3>Stephen Weber</h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>PM</p>
</li>
</ul>
<div data-role="footer" class="nav-glyphish-example" data-id="myfooter" data-position="fixed">
<div data-role="navbar" class="nav-glyphish-example" data-grid="b">
<ul>
<li><a href="#page1" data-transition="reverse slide" id="chat" data-icon="custom" class="ui-btn-active ui-state-persist">Link 1</a></li>
<li><a href="#page2" data-transition="slide" id="email" data-icon="custom">Link2</a></li>
<li><a href="#page3" data-transition="slide" id="skull" data-icon="custom">Link 3</a></li>
</ul>
</div>
</div>
提供一些代碼,說明你是真的在做什麼?錨點如何提供?您是否使用頁面定義來加載頁面?添加一些代碼,會有幫助.. – zyrex
嘗試刪除頁面過渡動畫,看看它是否加載頁面更快。這將縮小它的ajax請求是永久佔用還是動畫本身。 – adam