javascript - Google Chrome blocks the effect of loading layer
漂亮男人
漂亮男人 2017-05-19 10:26:02
0
1
613

The situation is as follows:
The front end initiates a request to the back end. This request takes a long time and is likely to fail. At this time, the front end adds a loading layer
Firefox browser: This loading The layer can run normally until the background returns, and then the front-end reports an error
Google Chrome: This loading layer can run normally at first, but immediately enters a pause state and is stuck until the background returns the results, and then reports an error

Excuse me:
1. What is the cause of this?
2. How to solve this situation?

$.delayLoad(function(dlIndex) {

    请求操作...

    // 关闭等待层
    layer.close(dlIndex);

});


附:($.delayLoad方法源码)

漂亮男人
漂亮男人

reply all(1)
Peter_Zhu

How did you write the loading effect?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!