by se85 · 14y ago · 0 comments
You can't just go and load a thousand divs and not expect a wide variety of performance issues across all the different platforms.
You need to have a tile manager or something behind the scenes the same way that Google maps does, especially when targetting smaller consumer devices with limited hardware specs like tablets and phones.
* iOS5 - with an iphone 3gs (laggy to the point of being unusable)
* iOS5 - with an iphone 4 (laggy to be the point of being unusable, unless your patient). I don't have an iphone 4gs to test on, but I suspect it might be more on par with ipad 2 performance. The differences could be to do with retina display vs non retina display as well I suppose.
* iOS5 - with an iPad 1 - roughly same performance as an iphone 3gs - crappy
* iOS5 - with an iPad 2 - not too bad (but thats because of the gpu tile rendering in safari going on behind the scenes i suspect.
* Firefox 15 on a quad core i7 imac - massive ram spike, and crazy lag with the scrolling
* Chrome on a quad core i7 imac - no problem.
I'm not even going to bother trying this out in IE!
edit: Latest version of Opera has provided the poorest results yet, it keeps lagging and pausing and reloading the images after they have already been loaded (didn't check to see if it was actually downloading them again though)
That would help vastly with things like this, unfortunately it does little for its JavaScript performance, but since this page doesn't seem to execute any JavaScript during scrolling (i think) i guess it's not relevant for this one edge case scenario :-)
Chrome on Android 4.0 (Galaxy Tab): Takes about 30 seconds and then I just get some text and a picture of the car. Chose 'Request Desktop Site' and it is fairly close to desktop experience. Sometimes you get bits of white page as it brings the images in.
Builtin browser on Android 4.1 (not Chrome): I had to request desktop site again. Almost usable. There are always images displayed, but drawing after using your finger may take a second or two.
Safari iPod Touch 4G iOS 5.1 - sporadically somewhat usable for one touch interaction.
I wonder whats so different under the hood of Safari Mobile on iOS 5 vs Chrome on Android 4 to deliver such different results, maybe its a hardware thing with tablets vs phones?
IIRC there was some past differences in iOS versus Android. Something like iOS prerenders the page to series of tiles so that as you scroll around it is really just showing tiles (think of how Google Maps works) while Android has a display list that is culled to the viewport and then (re)drawn as appropriate. But both sides were updating and changing how they did things.