cloudinary / cloudinary_js

Cloudinary JavaScript library
MIT License
328 stars 224 forks source link

Why based on jQuery? #52

Closed antonholmquist closed 9 years ago

antonholmquist commented 9 years ago

Basing this library on jQuery has the big disadvantage of making it difficult to use on the server side in nodejs. Also, the nodejs library is not possible to run in the browser due to the use of node-only modules such as fs.

To me, it's not really clear why the jQuery requirement is needed?

A vanilla javascript library instead of one strict client-side and one strict server-side would be awesome.

tocker commented 9 years ago

Duplicate of #38.

We are working on a jQuery-free version for the browser side. The NodeJS Cloudinary SDK includes code that is only relevant to the server side. Mixing them together would create an unnecessarily bloated code - where we are actually trying to reduce the size of client side JS.