Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1.9 Remove jQuery from 1.9
#1
I think this dependency is no longer needed.

Instead, vanilla or up-to-date dependencies should be used if and only where necessary.

I think 1.9 is the best release to do this because we are already making drastic changes to the theme/templates base and delaying this to, say, 1.10 may only stress third party designers.

Open for feedback.

We need feedback from theme designers.

https://github.com/mybb/mybb/issues/4981
Send me a DM or PM if you want to sponsor any update or addition to my plugins.

[Image: signature.png]

Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#2
- I know this is about jquery , but I think if instead remove jquery or use theme engine , if you only move mybb theme and templates in file instead of database that increase mybb speed a lot (Very, very much and I think using theme engine like twig for mybb is very very bad idea).
- if you saying this for More tools for designers , Jquery is up-to-date and version 4 is coming.
- if you saying for client-side speed, Jquery with Pure js (vanilla) speed different is only touchable for very, very huge website.
- if instead of jquery you use a library that have conflict with jquery , This costs users money and time (for members to want update website).


Overall, in terms of coding, I don't think it's necessary.


I am not theme designer , I am software engineer And I'm talking about software engineering. (but as freelancer Changes like this are in my favor Toungue )


Good luck.
Reply
#3
I will say NO.

Yes yes, I know the latest development of js it is already write less do more (jQ tagline).

The reason I am saying no...
1. Additional learning for those who are not already familiar with ES6.
2. I still love the syntax of jQuery.

Arguably good read for jQ haters:
https://medium.com/@hhartleyjs/why-i-swi...47b9830fcb
Reply
#4
Perhaps I'm a jQuery hater ?

From reading the quasi 2 free paragraphs from the link you share, I think I may be.
(To be frank, I universally hate JavaScript altogether.)

Let's see what others have to say.
Send me a DM or PM if you want to sponsor any update or addition to my plugins.

[Image: signature.png]

Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#5
A very tentative thought: maybe develop a MyBB JS dependency system, so that those who want to use jQuery just list it as a dependency of whichever script they're supplying, and it's otherwise not included. As well as being tentative, this thought is also questionable, because I wouldn't want developing such a system to delay the release of 1.9, although it needn't be included in the very first release, and because it could turn into a sort of dependency hell in which different scripts want different versions of jQuery.
Reply
#6
Assets can be already included via metadata in 1.9 (asset() functions or assets.json), and entries can be metadata-only. Currently, ./jscripts/jquery.js and plugins are explicitly attached.

The identifiers currently also work as URLs, but we can add support for generic tags and versions (e.g. jquery:3.7.1). The different locations (local, CDN), types (original, minimized), and versions would be determined by according to declarations.

Core usage of jQuery & plugins likely can be removed at any point. When appropriate, the explicit inclusion can be removed (requiring Extensions to declare the dependency), and the local file can be replaced with a CDN URL as a fallback.
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)