vlado / earthquake-croatia

Code for app hosted on https://www.potres-petrinja.hr/ used for helping people in need during the earthquake crisis in Croatia
15 stars 13 forks source link

Remove jQuery #95

Closed vlado closed 3 years ago

vlado commented 3 years ago

We are including jQuery https://github.com/vlado/earthquake-croatia/blob/master/app/views/layouts/application.html.erb#L10 and I think it is only used here https://github.com/vlado/earthquake-croatia/blob/master/app/javascript/controllers/filter_controller.js#L32-L38

Should be easy to remove it.

vlado commented 3 years ago

Let's wait with this. We will probably use select2 for cities select and it requires jQuery.

vfonic commented 3 years ago

Let's close this and focus on other things in the meantime. We use select2 which is a jQuery plugin so we can't remove it just like that.

radanskoric commented 3 years ago

Let's close this and focus on other things in the meantime. We use select2 which is a jQuery plugin so we can't remove it just like that.

I agree and also for this particular project we maybe even want jQuery. I know it's not modern and it's on its way out but it still has the largest amount of well crafted UI libraries relying on it. From a pragmatic point of view we probably want to keep it anyway.

Closing it.