Summary: | onchange Event For File Input Slow / Fails To Respond | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kevin Gale <keving> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Major | CC: | ap, joepeck |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 6.1 |
Description
Kevin Gale
2014-09-02 02:38:53 PDT
I have investigated this some more and the performance issue appears to be with the file selection process rather than the onchange event. I have stripped my example down to the HTML below and have discovered the following: 1. Choosing 3 videos with the durations 0:32, 0:39, 0:02 was fastest. 2. Choosing 3 screen shots was slower. 3. Choosing 3 pictures taken with a camera (iPhone 5 / iOS7) was slowest. To me, this looks like the problem is related to either the size of the file or the content of the file. Our app is a HTML5 based photo app which allows users to select lots of pictures. Unfortunately, due to this performance issue our users are complaining that it is unusable once they choose a few pictures as nothing happens for quite some time. We think iOS 8.0.2 might be faster than iOS7 but it is difficult to confirm this. However, even with iOS 8.0.2 the performance is still unusably slow. <html> <head> </head> <body> <form> <input id="uploads" name='uploads[]' type="file" multiple> </form> </body> </html> |