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