The current page load time is not over, click on the other page navigation, how to achieve jump immediately?

Source: Internet
Author: User
The problem of two page load delays is doubled when the same browser is built on different pages of the same site through Yii while the same database is time-consuming query operation

A page query, the front-end display needs about 10s of time, but users do not want to wait, want to see the navigation bar of the other pages, must wait until the previous page loaded before the jump, there is a direct click on the navigation bar other tags can be realized immediately jump method?


Reply to discussion (solution)

Which is the browser? How do you guarantee that functionality is cross-browser compatible?

Which is the browser? How do you guarantee that functionality is cross-browser compatible?


The browser is chrome. Now the problem is the parallel problem of Ajax, with Wireshark two times Ajax request to grab the packet. The Beforesend event occurred at the same time, but two times three handshakes were performed. So how do you make Ajax parallel?

https://segmentfault.com/a/1190000004322358
Is the AJAX request you initiated not set to asynchronous?

Did you use the session?

Did you use the session?



Yesterday saw you before the answer to the post, with the framework, but the following, it is indeed used.
Anyway,thanks

https://segmentfault.com/a/1190000004322358
Is the AJAX request you initiated not set to asynchronous?




The default is asynchronous

If a session is used, requests from the same browser should be locked by the session temporary file and executed serially
You need to execute the Session_write_close function immediately after using (set) the session data to unlock the session

  • 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.