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

More
8 years 9 months ago #59949 by ggppdk
When you set "Load manually" some non FLEXIcontent code must load jQuery at an early point

- when you set to manually you must do it manually,
the parameters is for users that need it and who know how to load jQuery manually

e.g.
some users will disable jQuery / jQuery UI loading in ALL extensions
and add loading of it at the TOP of your index.php of the JOOMLA Template


-- 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...

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

More
8 years 9 months ago #59953 by Romani

When you set "Load manually" some non FLEXIcontent code must load jQuery at an early point

And it actually is, but for some reason Flexi trying (now) to load all other enabled scripts before everything.

Oh well, its getting weirder and weidrer.
So, i enabled jQuery in Flexi and...
This is how its works now
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/jquery.ui.core.min.js" type="text/javascript"></script> <script src="/media/jui/js/jquery.ui.sortable.min.js" type="text/javascript"></script> <script src="/components/com_flexicontent/librairies/jquery/js/jquery-ui/jquery.ui.dialog.min.js" type="text/javascript"></script> <script src="/components/com_flexicontent/librairies/jquery/js/jquery-ui/jquery.ui.menu.min.js" type="text/javascript"></script> <script src="/components/com_flexicontent/librairies/jquery/js/jquery-ui/jquery.ui.autocomplete.min.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?d0fc6d41e9b73563d273d86f5a36be50" type="text/javascript"></script> <script src="/components/com_flexicontent/assets/js/jquery-easing.js?d0fc6d41e9b73563d273d86f5a36be50" type="text/javascript"></script>

I see its probably dont very much of fault of Flexicontent, because i literally cannot determine from where <script src="/media/jui/js/jquery.min.js" type="text/javascript"></script> is loading - no trace in template, its loading even with all plugins and modules disabled.
Still, after enabling jQuery in Flexi order changed significantly, Flexi no longet tries to load its script ahead everything.
Anyway, only solution i found so far to stop all that mess is to install disable jQuery in Flexi, install eorsis jQuery plugin, configure it load jQuery and let it kill all other attempts to load same lib.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.344 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