Reputation: 135
I have been asked to build a website with an area on each page that is 1600 X 610 px, where images slide across (3-4 images, changing/sliding every 10 seconds). I have done this before with a JS slider.
It has been suggested that maybe it would be more 'efficient' for the image to be an animated gif, rather than a JS controlled slider.
The website will not be otherwise very heavy with regards to code or images. Hard to quantise, but which solution (JS slider or 1600 X 610 gif) in terms of memory and speed would be the most efficient? How can I compare\calculate the trade offs for different size sliding image boxes?
Are there any other issues that I should be ware of with either solution?
Thanks
Lee
Upvotes: 0
Views: 1019
Reputation: 61
You should definitely go with JS, gif will be to heavy and using gif you'll lose all the flexibility. In terms of performance you won't notice any difference, but in terms of loading of the page it will take much more time if you'll use gif. Besides it'll be much easier to create a JS animation than to generate gif.
Upvotes: 2