Home  >  Article  >  Web Front-end  >  Optimize the user experience of waiting for the ajax request server to load the data list

Optimize the user experience of waiting for the ajax request server to load the data list

php中世界最好的语言
php中世界最好的语言Original
2018-04-02 09:19:551567browse

This time I will bring you the user experience of optimizing the ajax request server to load the data list and wait, and the optimization of the ajax request server to load the data list and wait for the user experience. What are the precautions?. Here are the actual cases. Let’s take a look. take a look.

We use weui.loading in weui.js as the effect, and the beforeSend and complete methods of ajax to make a loading that will take a few seconds when loading data...

The JS file that needs to be loaded on the page: