About pre-loading of Jquerymobile

Source: Internet
Author: User

Let's look at some of the code in the index.html below.

Do not add preload

<footer class= "Footer" data-role= "none" ><a href= "#" class= "current" data-role= "None" class= "Ui-btn-active" >test</a><a href= "#" data-role= "None" >test</a> <a href= "a.html" data-role= "None" >test< ;/a></footer>


Add preload

<footer class= "Footer" data-role= "none" ><a href= "#" class= "current" data-role= "None" class= "Ui-btn-active" >test</a><a href= "#" data-role= "None" >test</a> <a href= "a.html" data-prefetch= "true" data-r Ole= "None" >test</a></footer>

View Google Chrome Console when executing index.html

Found more of this.

XHR finished Loading:get "http://xxxxx:8080/xxx/xxxx/new/grzx.html".

And look at Google Chrome elements more.

As you can see, the preload should be that when index.html is finished loading, the elements contained in the data-role= "page" div in grzx.html are preloaded into the index.html page. When the page is toggled, the current page is hidden and the destination page is displayed


About pre-loading of Jquerymobile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.