jQuery is not defined

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Sep 05, 2015 2:43 am
Reply with quote
Report this post
Hi guys,

I have an error log in console. It says:

ReferenceError: jQuery is not defined
var $K2 = jQuery.noConflict();


I think it's because k2 component was loaded before jquery.
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/components/com_k2/js/k2.js?v2.6.9&amp;sitepath=/" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/system/js/modal.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>


My question is how to load jquery before the k2 component?

Thank you
User avatar
Fresh Boarder

GK User
Mon Sep 07, 2015 6:23 am
Reply with quote
Report this post
Does the same problem happens on default Beeze/Protostar template?
User avatar
Moderator


cron