Hello CP community,
First, thanks to all who have been kind and generous with your time for a recent convert.
I have been looking for the ideal base theme. After reviewing numerous themes, it looks like Susty uses jquery, while ClassicPress theme does not. Am I correct in this? What is the reason?
From prior experience, I have seen arguments for and against. I’m generally a fan of the leaner approach but also appreciate elegant design.
Q: Was jquery dropped for performance reasons?
Thanks, again.
JQuery UI was dropped because CP mission is to have a clean and lean core using less libraries possible. but JQuery itself as far as I know is still in CP.
JQuery UI was dropped in favor of Vanilla JS or libraries like SortableJS in place of JQuery Sortable.
For reference: Deprecated Scripts | ClassicPress
@RanWest Something to help you with converting code, if you have to:
As the post to which @Ciprian links suggests, there really isn’t any reason to use jQuery these days. The one exception is where, like ClassicPress itself, you have a large codebase that’s full of jQuery already. But even then, as we modify code for other reasons, we are taking the opportunity to replace jQuery with vanilla JS as we go and, as @ElisabettaCarrara mentions, we have now managed to remove jQuery UI from core altogether.
So I would definitely go with vanilla JS in your position.