Foundation-sites: Get rid of jQuery

Created on 13 Jul 2018  路  12Comments  路  Source: foundation/foundation-sites

its hard to incorporate foundation with diffrent frameworks, jQuery should not be required for foundation 6+

Revisit for F7

Most helpful comment

We plan this for Foundation Sites 7.

All 12 comments

We plan this for Foundation Sites 7.

that will take too long

that will take too long - @broros

The whole JS would have to be reworked, every single component!
Anything but a new major version (Foundation 7) doesn't make sense.

Many people would like to get rid of the jQuery dependency (me included) but we have to be realistic.

You can also use foundation without the JS and use the given CSS to create own components. I've build the foundation accordion two or three times. It's just around 2 or 3 hours of work.

As above is all correct, personally jquery can't be removed as most of the work is done within wordpress etc. Very keen to see a vanilla 7, but surely the css part is already reliable for webapps right now, and the js part can be easily added with the framework used.
Adding also that zf has very advanced and configurable components, for simple/basic similar components as accordions you don't need a framework, the web is full of examples.

personally jquery can't be removed as most of the work is done within wordpress etc

Not sure what you mean but this issue is about removing one big required dependency of Foundation for all projects. It's not related to a specific platform.

and the js part can be easily added with the framework used

It's much more as we have many JS components. You do not want to reinvent the wheel or reimplement the components. Foundation is a frontend framework and this is out of scope of v6.

Closing this issue as it is already planned for Foundation 7.

@ncoden

Is it possible to update the roadmap in the wiki?

I've searched the issues for information more recent than last January regarding the Foundation 7 timeline, but was not able to find anything. I realize that giving setting an actual release date might be a bit too much to ask, but it would really help if users would at least have a basic idea of what the timeline is.

Perhaps I missed something. If that is the case, please let me know.

@ArondeParon There is no roadmap for v7 yet. We had a lot of discussions about it and we know what direction it should take, but we still have work to do before being able to say, depending on the availaible people, how much time it would take to work on it. This is quite a heavy project.

Looks like the roadmap got updated. Great to see jQuery support drop. Anybody already started rewriting js? I know Typescript was for discussion too. @ncoden What are your current thoughts on this?

Interesting discussion. I just recently proposed Web Components to @ncoden on Slack, but never got around to filing an issue.

https://stenciljs.com (or https://github.com/Polymer/lit-element, or alternatives) + TypeScript would be a massively strong success result hypothesis.

Was this page helpful?
0 / 5 - 0 ratings