By LAC Webadmin on Tuesday, 03 February 2015
Replies 4
Likes 0
Views 1K
Votes 0
Hi There,

I'm developing a Joomla template from scratch and just noticing the head when in EasySocial Dashboard view or any ES Views. Regardless where I call JHtml::_('jquery.framework'); to load jQuery, ES foundry/config scripts will be loaded first before jQuery. And strange, same thing with other plugins like JCE Editor's.

I thought Joomla 3.3.6 would load jQuery first before any other script loads. Any tip?

Thanks,

Jackson
I too have made my own custom template for Joomla 3.3.6 that uses minimum JS but does load bootstrap and Jquery. You are correct that the foundry script loads before Jquery. I assume the foundry script does not rely on Jquery to properly operate. If that's true, I'm not quite sure how loading it before Jquery is a bad thing.
·
Tuesday, 03 February 2015 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh,

At the time I posted, I'm getting error in JS console pointing to ES script and I thought it was caused by jQuery loaded before ES config/foundry scripts. Well, I guess it was caused by nginx cache or something.

It's just weird that Joomla would load components/module/plugin scripts before loading jQuery Library. What if the extension rely on jQuery to run. I don't know if you notice that in different setup/server scripts loads differently in sequence. I've seen this in 3 different setup, local and 2 different servers.

Thanks,

Jackson
·
Tuesday, 03 February 2015 11:57
·
0 Likes
·
0 Votes
·
0 Comments
·
As for the rest of Joomla, I completely agree that Jquery should load first considering that some extensions make use of it and need it to load first. Will have to keep an eye out for possibly scenarios where Jquery gets loaded twice to fix this issue.
·
Tuesday, 03 February 2015 12:04
·
0 Likes
·
0 Votes
·
0 Comments
·
It actually depends on how the extension is adding the items into the head of the page. I believe using the addScriptTag, they will all be rendered before Joomla's script declarations but we actually add it before anything else on purpose and that purpose is to simply avoid conflict issues with 3rd party extensions
·
Tuesday, 03 February 2015 14:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post