Justified-Gallery icon indicating copy to clipboard operation
Justified-Gallery copied to clipboard

question: vanilla js

Open jimblue opened this issue 6 years ago • 11 comments

Hello,

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

tks

jimblue avatar Oct 26 '17 19:10 jimblue

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

miromannino avatar Oct 31 '17 06:10 miromannino

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

jimblue avatar Oct 31 '17 08:10 jimblue

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.

katerlouis avatar Nov 25 '19 13:11 katerlouis

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.

miromannino avatar Nov 26 '19 06:11 miromannino

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

jimblue avatar Nov 26 '19 11:11 jimblue

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?

katerlouis avatar Dec 04 '19 07:12 katerlouis

It still plan to make it ?

jerryc127 avatar Mar 31 '21 15:03 jerryc127

Still looking for answers here :|

sagrawal31 avatar Dec 28 '22 14:12 sagrawal31

@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:

  • Be ESM (ES Modules)
  • Not rely on jQuery, making it easier to use with vanilla JS, Vue JS, etc.

saas786 avatar Feb 03 '24 13:02 saas786

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

miromannino avatar Feb 08 '24 06:02 miromannino

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.

saas786 avatar Feb 08 '24 11:02 saas786