On 06/15/2012 08:28 PM, Jerome Velociter wrote:
Hi devs,
Now that all the scripts on the Internets are implemented as jQuery plugins, should we bite the bullet and make it easier for extensions developers to integrate such scripts ? Note it would not necessarily mean we use it ourselves in web/XE.
If we don't do something about it, there is the risk that many extensions bring their own jQuery to the party, which will translate in slower page loads and more importantly a less enjoyable extension developer experience.
An alternative idea would be an "official" jQuery extension (with a JSX) that other extensions can depend upon, should they need jQuery.
What do you think ?
Jerome
Using jQuery in XWiki is not a very easy task, so indeed it's a good idea to provide our own integration known to work. Personally I'm not a fan of jQuery, but I agree that it's the most popular JS framework, and most JS widgets/libraries are built on top of it, so you have my +1. Packaging, I think that it should be placed on the filesystem in resources/js/jquery/, it shouldn't be used by default, and we try to bundle the most recent version available at the time of the release. If someone needs a more recent version, they should update XWiki as well. -- Sergiu Dumitriu http://purl.org/net/sergiu/