jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.74k stars 668 forks source link

Update docs to specify 20ms minimum for delay #65

Open velipso opened 7 years ago

velipso commented 7 years ago

It would be nice if the docs in the README specified that the minimum delay for browsers seems to be 20ms:

https://blogs.msdn.microsoft.com/ieinternals/2010/06/07/trivia-animated-gif-timing/

More citation would be nice, but that seems to work for me. Specifying lower delays causes it to default back to 100ms.

mootari commented 5 years ago

For Chrome I've observed a minimum delay of 15ms.

mootari commented 5 years ago

Just ran into this again and decided to check the source. If I'm reading the code correctly then both Chrome and Firefox set the cap at >10ms: Firefox, Chromium

Edit: Discussion in Webkit tracker