Hi,
On Wed, Jun 3, 2020 at 1:40 AM Glenn Thompson <
gatma...@gmail.com> wrote:
>
> Hey,
>
> The organization I work for is starting to telegraph that the use of jquery should be considered deprecated.
jQuery should win an award for the JavaScript framework that lasted
more than 2 months!
:D
> Although many portions of jQuery are in fact easily replaced by newer more standard practices, I'm not sure Ajax is one of them. I'm being told that they want us to start using Fetch. Besides spotty support, I'm concerned that using Fetch for long polling may not be an option.
> I have no problem with Jquery, its what I use from many things.
>
> However, going forward from a CometD perspective:
>
> 1. Is Fetch in the plans?
No, unless it's convenient or mandatory to support it.
> 2. Would Dojo be lighter weight for the purpose of ajax only.
I don't know about "lightness" as there are so many other things to
take into account.
> 3. Or do something like angular did where they made jQuery light within the framework.
Again "light", not sure what that means in your context.
CometD is independent from jQuery.
If you want to remove jQuery, go for it.
You have a choice to use CometD from AMD, CommonJS or Vanilla, so
whatever JavaScript framework you want to use, CometD should be easy
to use.
If that's not the case, then let's discuss it, but so far since it
supports AMD and CommonJS, build-time tools like Browserify etc. will
optimize your JS files (and CometD with them).
--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.