Optimized the gif with imagemagick.

convert demo.gif -coalesce -layers OptimizeFrame demo.gif