This article mainly introduces the Jquery.uploadify plugin in the Chrome browser frequent crash solution, very practical, encountered the same problem, need to solve friends can refer to the
Jquery.uploadify Plug-ins in the Chrome browser frequent crash problem, has been bothering for a long time, the internet many people say because of the reasons for the chrome cache, plug-in initialization, need to reference JS, and the chrome cache caused no request to jquery.uploadify-3.1 _min.js, so cause crash, you can quote JS, add random number: <script type= "Text/javascript src="/JS/JQUERY.UPLOADIFY-3.1_MIN.JS?VER=<? PHP echo rand (0,9999);? > "></script>
In this way, I found that this approach does not completely solve the crash problem, such as when the Uplodify page enters another page, and then clicks back to return to the Uploadify page, the same crash problem occurs.
Completely resolved: settimeout, so that the initialization of Uplodify and browser cache module functions do not at the same time
The code is as follows:
$ (function () {
settimeout (function () {
$ (' #file_upload '). Uploadify ({
' swf ': ' tools/uploadify/uploadify.swf ',
' Uploader ': ' upload.php ',
' Onuploadsuccess ': function (file, data, response) {
}
});
},10);
});
Thanks netizen hoverlees Share this solution, here record down, share to everybody.