J3.x talk

Javascript Frameworks

From Joomla! Documentation

(Redirected from Talk:Javascript Frameworks)

Is there a point to calling JHtml::_('jquery.ui' array('core', 'sortable'); ? At the moment, if only sortable is loaded, it will automatically add in core as well since it requires core.

I am assuming at some point in time these frameworks should be moved to their own pages...I just don't have time to organize them and am filling them in as I work with them.

For Mootools, am I correct that it will be removed in the future? Ideally, the Joomla libraries should be first as it would be preferred to use Joomla namespaced functions to ones tied directly to an underlying framework - but until they are divorced from Mootools I don't want to encourage their usage[with the potential for conflicts between having 3 entire frameworks included on the same page].

Actually, it is possible to load jQuery UI Sortable without loading core first given the way the method is written. Core isn't automatically loaded. Mbabker (talk) 23:42, 1 December 2012 (CST)

The plan is to port all of the core behaviors from Mootools to jQuery in time for Joomla v 4.0.0. If we can do this, we will stop using MT behaviors in the core at that time.
However, even if this happens, there are no plans that I know of to stop supporting multiple JS libraries. Specifically, I would strongly favor continuing to use jQuery in compatibility mode so 3p devs can still use MT or other libraries. The only difference would be that you would have to take responsibility for loading MT with your extension.
As for the JHtml::_('jquery.ui') I'll have to pass! --Wilsonge (talk) 03:17, 23 April 2013 (CDT)