mejackreed / Leaflet-IIIF

Leaflet plugin for viewing IIIF images
http://mejackreed.github.io/Leaflet-IIIF/examples/example.html
MIT License
138 stars 30 forks source link

Remove jQuery dependency #46

Closed mejackreed closed 4 years ago

mejackreed commented 8 years ago
epoz commented 6 years ago

I made another attempt at: https://github.com/epoz/Leaflet-IIIF/commit/88fa7ed16f8c145e31ed42afdb1fa5eeb34956d3 using the fetch() API.

@mejackreed comments on Slack: "Without any arrow function support for Internet Explorer, I think this may be a non-starter until that can come. I would be more inclined to adopting something like the approach in #45 for maximum compatibility."

My goal with this is to use leaflet-iiif in a React app, where I do not want to also load in jQuery just for this one component.

abrin commented 5 years ago

would you be more open to pulling out jQuery now that two years have passed? I wonder if the active browser support has rolled along enough that the older browser versions aren't as much of an issue (IE 11 at ~2% according to https://caniuse.com/#feat=arrow-functions)

mejackreed commented 5 years ago

@abrin yes. See https://github.com/mejackreed/Leaflet-IIIF/pull/77 for the implementation. I was hoping to get some feedback on that.

mejackreed commented 4 years ago

Resolved in #77