miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.69k stars 299 forks source link

question: vanilla js #249

Open jimblue opened 6 years ago

jimblue commented 6 years ago

Hello,

Do you have any plan to move this library to plain js?

tks

miromannino commented 6 years ago

There is a plan, but I don't really have much time by now for this big change. For sure I will let this library to work as a vanilla js object, with the only constraint that it will need jQuery as dependency.

The problem of being totally vanillajs is that one of the strongest asset of this library is that people find it reliable, since it works also with the earliest version of IE. In my experience including jQuery (with a minimal potential loss of speed) is worth it, if on the other side the alternative is a totally broke website.

What are your necessities to ask this? Thank you

jimblue commented 6 years ago

Concerning earlier version of IE, it's kind of a philosophical subject to support it or not. My position is to encourage people to move from it because it's just a few click for them and they will don't regret it. That say it's also possible to have good compatibility in plain JS with bundler like webpack. The biggest advantage of JS is of course performance and simplicity ES6 is just great.

About my necessity, I just need the kind of layout your plugin does for my photos, but without dependency as I quit jQuery totally and I don't want it back just for one library.

I actually use flickr/justified-layout which is very nice.

My code is working but I don't feel maintain it (coding is not my job at all). That's why I searching for something with good community and feedback like your library. It's always good to have many people reviewing code to make it better.

Cheers

katerlouis commented 4 years ago

any update on the plan to go vanilla? having jQuery as a dependency is a no-go for me (and I guess most of the webdev world these days), which is a bummer, because this library looks promising.

miromannino commented 4 years ago

Some people think the opposite, since for some reason they want to have compatibility up to who know which version of IE.

I will plan doing a new version where jQuery is not used anymore.

jimblue commented 4 years ago

jQuery is not needed today for compatibility, the true answer is BabelJs/Webpack/Browserlist

katerlouis commented 4 years ago

Some people think the opposite, since for some reason they want to have compatibility up to who know which version of IE.

I will plan doing a new version where jQuery is not used anymore.

any ETA yet or any way to help you?

jerryc127 commented 3 years ago

It still plan to make it ?

sagrawal31 commented 1 year ago

Still looking for answers here :|

saas786 commented 8 months ago

@miromannino

I've been using this for over 5 years regularly, and it still works. However, for the past couple of years, I've been hoping it would:

miromannino commented 8 months ago

Hello @saas786 I totally agree! There were pushbacks a few years ago from people that wanted compatibility up to Internet Explorer 6 that made me dubious wether or not to change anything. I believe it's time for a new modern version without use of jQuery, providing examples for Vue, React, etc.

I will be dedicating some time to work on it soon

saas786 commented 8 months ago

Hello @saas786 I totally agree! There were pushbacks a few years ago from people that wanted compatibility up to Internet Explorer 6 that made me dubious wether or not to change anything. I believe it's time for a new modern version without use of jQuery, providing examples for Vue, React, etc.

I will be dedicating some time to work on it soon

Glad to hear that. I won't mind helping in any way possible, specifically with testing it out.