[ALLOW FC TO LOAD jQUERY] Wrong (jQuery) script loading sequense in Flexicontent

More
8 years 10 months ago - 8 years 10 months ago #59869 by Romani
Hello, cannot really tell is it bug or not but that the story
Just found out that after update tov3.0.10 from 3.0.9 Firefox started to show a lot of javascript errors for me

Like ReferenceError: jQuery is not defined
select2.min.js:21:1
ReferenceError: jQuery is not defined
select2_locale_ru.js:23:1
ReferenceError: jQuery is not defined
tmpl-common.js:204:1


Checked page contents and found out this
Code:
<script src="/media/system/js/core.js" type="text/javascript"></script> <script src="/components/com_flexicontent/librairies/select2/select2.min.js?3.5.4" type="text/javascript"></script> <script src="/components/com_flexicontent/librairies/select2/select2_locale_ru.js?3.5.4" type="text/javascript"></script> <script src="/components/com_flexicontent/assets/js/tmpl-common.js?80ec209b0f18ff06630dcca218e9e368" type="text/javascript"></script> <script src="/components/com_flexicontent/assets/js/jquery-easing.js?80ec209b0f18ff06630dcca218e9e368" type="text/javascript"></script> <script src="/media/jui/js/jquery.min.js" type="text/javascript"></script> <script src="/media/jui/js/jquery-noconflict.js" type="text/javascript"></script> <script src="/media/jui/js/jquery-migrate.min.js" type="text/javascript"></script> <script src="/media/jui/js/bootstrap.min.js" type="text/javascript"></script>
No surprise there is errors - Flexicontent started to load its script much before Joomla loads its jQuery, so there is error.
I pretty much sure i havent seen that in previous Flexicontent version and there was not recent changes in other extension nor in Joomla version (3.4.8, latest).
To tell truth i really dunno how to change this order, any ideas (updated to 3.0.11) - same problem

P.S. Need to add, that jQuery option in Flexicontent configuration is set to Manually in Frontend. Why? Because i dont see a reason to load jQuery from Flexicontent since there is system one. Before that worked fine, but not now.

Ok, checked previous version - it really had different order
Code:
<script src="/media/system/js/core.js" type="text/javascript"></script> <script src="/media/jui/js/jquery.min.js" type="text/javascript"></script> <script src="/media/jui/js/jquery-noconflict.js" type="text/javascript"></script> <script src="/media/jui/js/jquery-migrate.min.js" type="text/javascript"></script> <script src="/media/jui/js/bootstrap.min.js" type="text/javascript"></script> <script src="/components/com_flexicontent/librairies/select2/select2.min.js" type="text/javascript"></script> <script src="/components/com_flexicontent/librairies/select2/select2_locale_ru.js" type="text/javascript"></script> <script src="/components/com_flexicontent/assets/js/tmpl-common.js" type="text/javascript"></script> <script src="/components/com_flexicontent/assets/js/jquery-easing.js" type="text/javascript"></script>
Last edit: 8 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #59943 by gardenho
I don't know about the rest, but when the jquery is set to 'manual in frontend' that is to disable it in flexicontent that way it does load from joomla. It says this in the tooltip when you hover there.
Last edit: 8 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #59944 by ggppdk
Hello
Code:
but when the jquery is set to 'manual in frontend' that is to disable it in flexicontent that way it does load from joomla.
wrong statement in 2 ways

1. FLEXIcontent always calls Joomla API to load jQuery and jQuery UI basic JS
2. if some other extension or if the administrator does not load jQuery then jQuery will not be loaded at ALL

- if you set to manually, then it is your responsibility to load jQuery and jQuery UI appropriately

@Romani
have you set load jQuery to "manually at frontend" ? (component parameter)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #59945 by Romani
Yes, it was set to load jQuery manually. Now and prior of that.
Last edit: 8 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #59946 by ggppdk
Hello

if you set to "manually" then jQuery loaded order is no longer controlled by FLEXIcontent

the fact that with previous version of FLEXIcontent the jQuery loaded in correct order
- is due to indirect effect of FLEXIcontent code
e.g. we call function NNN of Joomla that triggers code to load jQuery
- or due to other site configuration / other site extensions running

If you want jQuery to be loaded in correct order by FLEXIcontent the you must allow FLEXIcontent to load it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #59948 by Romani
Well, i see, need to investigate if deeper. But fact is that version change of Flexicontent is only change was made by me, so basically its change in Flexi have effect.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.381 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline