Optimize gif using command line [linux gifsicle tool]
Run the following command in your directory where image is located.
Command:
gifsicle -i anim.gif -O3 --colors 256 -o anim-opt.gif
- my gif got reduced from 15.2 to 12.5 mb you can further reduce it by setting --colors 8 instead of 32.

- And finally I reduced it to a size 252K which OfCourse not look that much cute but ok I need it for a purpose.
This will optimize and reduce to 256 colors, if the animation uses more colors
(the example image does).
You can reduce the size by reducing the number of colors:
1.512KB, 256 colors
2.412KB, 128 colors
3.340KB, 64 colors
4. 240, 32 colors
5.140, 16 colors