Why is the attribute accpet = Image/* when uploading files in the INPUT label type is to upload files, and the speed of opening the local folder is particularly slow?
After the test, it was found that Safari, Firefox, Chrome (Opera I don’t know why the old flashing) is not stuck.
In Windows, Firefox is not stuck, only chrome stutter.
So I decided to remove the ACCPET first ...
Sure enough, there was no problem of stuttering.
So this package is trying to get cards in ACCPET = Image/JPG ! Intersection
It seems that the problem is iMage/*
But the original meaning of writing ACCPET is to screen out all pictures_ (: з "∠) _
So in order to realize this demand and improve the user experience, only enumeration can be adopted
Modified code<input type = file account = image/gif, image/png, image/jpeg, image/jpg, image/bmp/>
Try it again, it really is appropriate!
It turns out that Chrome's Safebrowsing function will check the file when uploading or saving, and
If the network connects to Google is faster, there is no problem.
But if the connection is slow, or just kneeling off, then Safebrowsing will let Chrome hang up for a while until the file check is over or timeout
Using Accept = Image/PNG, Image/JPEG, Image/GIF can solve this problem, because these MIME types do not need to be checked in the whitelist of Safebrowsing .
But if you use it like access = Image/* , it will not work, and it may become a stapta.
The above article quickly solves the problem of slow and stuttering when opening [type = file] is all the contents of the editor shared with you. I hope to give you a reference, and I hope everyone supports VEVB martial arts network.