After you complete your animation, you should optimize it for efficient download to a web browser. You optimize an animation in two ways:
Optimize the frames to include only areas that change from frame to frame. This greatly reduces the file size of the animated GIF.
If you are saving your animation as a GIF image, optimize it as you would any GIF image. A special dithering technique is applied to animations to ensure that dither patterns are consistent across all frames and to prevent flickering during playback. Due to these additional optimization functions, more time may be required to optimize an animated GIF than to optimize a standard GIF.