I am developing a website for a client. I have liberty to choose technologies to be used. For all my sites till now I've always used jQuery for front-end development. But for this site I thought I should go on with vanilla javascript only.
The plan is to use CSS techniques as much as possible to UI/UX effects. Make use of the javascript minimum. There are some cases like sliders where javascript is required. For such situations there are various plugins available on the web in vanilla JS, though not as many as jQuery dependant plugins.
The major reason to take this step is to make site lightweight as much as possible, of course, I have to optimise CSS & images too for that purpose. JS is just one step.
What I want to ask this community is whether it is a good decision or not, the doubts in my mind are as follows:
- Is it really worth ditching JQuery for performance optimisation? (Considering longer development time, although not much difference)
- Currently I am the sole front end developer, but if in future another developer joined the project will the project be understandable to him/her? (Not many web developers are very much familiar with working in only vanilla JS!)
- Are vanilla JS plugins available on web are stable? Cause javascript is little bit inconsistent among the browsers.
Edit:
Please note, I am not removing jQuery because it is causing some problem. Nope, its been great using it. But now I am using CSS3 more & more whenever possible. The only place jQuery is used if some sliders & some show/hide function. Which is doable using javascript too, and for rest all function such as click or submit jQuery is not really necessary. Instead of keeping it with little use, I want to remove it completely.