Animated Gif stops animating when loading page.

  • Thread starter Thread starter Ken Varn
  • Start date Start date
K

Ken Varn

I have a web page that does a window.open() call on a new url. The url that
is being opened may take awhile to come back to the client. During this
time, my animated gif no longer animates. Can someone explain why this
happens and how it can be avoided?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 
Animated gifs normally work fine in my browser. They only stop animating
when I try to load a new web page in the onload event. Thus, I don't think
this solution really applies.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 
Found a solution to my own problem. Here is how I was able to get around
the problem. I basically load my new page in an IFrame that is invisible.
This does not disturb the animation of the gifs on the main frame. I then
added an onload event handler for the IFrame. Once the page is loaded, I
remove the animation and make the IFrame width and height to 100%. This
works really well, and the page appears to paint instantly.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
 
Back
Top