augustr / vasttrafikapi

C#, JS and python wrappers for communicating with Västtrafik public API in Västra Götaland, Sweden.
3 stars 1 forks source link

Get rid of jQuery dependency in js-api #2

Open augustr opened 9 years ago

augustr commented 9 years ago

The js-api is dependent on jQuery for its ajax call. What about using XMLHttpRequest directly?

jswetzen commented 9 years ago

There is some info about replacing jquery ajax here: http://youmightnotneedjquery.com If IE8+ support is enough, this could be a drop-in replacement.

augustr commented 9 years ago

Really nice page! Bookmarked! Yes, something like that was what I was looking for. It would be great if this library didn't have any dependencies. And IE8+ is totally ok. Since it will run in controlled environments I think we can drop IE support altogether if necessary.