jnordberg / gif.js

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

better browserify + easier install #42

Closed davidguttman closed 7 years ago

davidguttman commented 9 years ago

These changes let browserify directly bundle from source 1) using coffeeify to transform cs to js on the fly and 2) using webworkify to inline the worker js

This isn't quite ready to merge yet, (I think this will break the build/dist step) -- but wanted to get thoughts.

If the build step is fixed, this should make installation easier for script tag users (they'll only have to put one script on the page) as well as making this easily browserifyable for npm users.

jnordberg commented 7 years ago

I remember having some issues with browser compatibility loading inline sources to web workers but might be worth revisiting now a couple of years later :) Not going to merge this but it will be a useful reference, Thanks! And sorry for the slow response time.

davidguttman commented 7 years ago

No worries, let me know how it goes!