Page 1 of 1

load gif files after click on that

Posted: Sun Jan 28, 2018 8:17 am
by wb_user
hello
i have a some gif files with large sizes ( between 5-10MB)
when page loads gif files load with that and this is effect on page loading and page size
how i can set : when click ~> play (or load) gif files for resolve page size problem ?

Re: load gif files after click on that

Posted: Sun Jan 28, 2018 8:25 am
by Pablo
A gif is an image, not an animation. It cannot be controlled via events.
But you can try to set a smaller image initially and then use an event (setImage) to load another (GIF) image.

Re: load gif files after click on that

Posted: Sun Jan 28, 2018 8:35 am
by wb_user
Pablo wrote:
Sun Jan 28, 2018 8:25 am
But you can try to set a smaller image initially and then use an event (setImage) to load another (GIF) image.
is that possetive effect on page size?
can u give me More details for this method ?

Re: load gif files after click on that

Posted: Sun Jan 28, 2018 9:09 am
by alexmasss

Re: load gif files after click on that

Posted: Sun Jan 28, 2018 9:14 am
by wb_user
Pablo wrote:
Sun Jan 28, 2018 8:25 am
A gif is an image, not an animation. It cannot be controlled via events.
But you can try to set a smaller image initially and then use an event (setImage) to load another (GIF) image.
i use this method I want to say thank you