Hey,

I've actually ran into the very same problem. Did you find a solution?

Here's what I tried so far (I use base64 text for the images instead
of raw files):

- Storing the images in normal <img /> and changing the src
- Storing the iamges in <div> backgrounds and changing them via
style.backgroundImage
- Storing the images in a <canvas /> and redrawing them

So far, nothing has worked, it always crashed after about 100 images
have been shown!

Any help would be very much appreciated!

On 6 Sep., 18:02, Bob S <[email protected]> wrote:
> Hi,
>
>    I've been trying to make a web page play animations by changing the
> src ofimagetags.  It works, but there is a whole gallery of these on
> the site.  I keep the images for a single animation in an array.  When
> the user switches to a new animation, I delete the elements of the
> array before loading the new images.
>
> Yet after a certain number of frames total have been loaded, it stops
> on iPad and iPhone.  I think it is hitting this 5 or 6Mb limit, as
> discussed here:
>
> http://stackoverflow.com/questions/2908459/mobile-safari-5mb-html5-ap...
>
> If there is a limit on memory, that's fine, but then you've gotta be
> able to release memory!  Is that not the case?  I am a novice at web
> programming, so it could easily be a mistake I'm making, but that post
> and other similar ones I've found make me think it may not be
> possible.  Anyone know?
>
> Here's the URL I'm testing:http://www.inchwormanimation.com/GalleryTest.html
>
> Thanks!
> Bob S.

-- 
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.

Reply via email to