The loading time of each image is a real problem, but you will definitely not solve it by surcharging the http requests number at the same time with this background trick. Haven't think about that much, but if you load the next image when the previous one is loaded, you may have a nice cascading image loader tha add the image to the div using DOM. That would be my first thought / try
Remi Grumeau (+33) 663 687 206 http://www.remi-grumeau.com Le 5 mai 2010 à 04:39, faustino forcen a écrit : > The problem I seem with the left and right swiping in a photoalbum is > related to the preloading of the images to give users a smooth > experience. I'm thinking (still not working on it) on a way to > automate this preloading, but I guess that I'll need to resort to just > add the prev and next images as background images to the preloader div > and then, somehow, swapping the content of the three needed image divs > with the image to show depending on the direction of the swipe. Just > to avoid preloading all images on a gallery. > > Any thoughts on this, anyone? > > Faustino > > -- > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en. > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
