`TypeError: $.Tween Is Undefined` In FireFox
I get this error on this page in Firefox, but only sometimes: TypeError: $.Tween is undefined The page worked well for more than 6 month, I haven't changed the code - but strange
Solution 1:
The problem is that you have jQuery included twice,
<script type="text/javascript" src="../lib/jquery/jquery-1.8.3.min_ts_1382746426.js"></script>
...
<script type="text/javascript" src="../lib/jquery/jquery-1.3.2.min_ts_1235084541.js"></script>
and the second, older version, overwrites the first, newer one.
Solution 2:
- Use one jQuery.
- Load the jQuery before all jQueryplugins. keep it on top of every other script tag
use jQuery document ready to run your code.
$(function( ){ console.log( "ready!" ); });
instead of
(function($) {...})(jQuery);
You have to clean up your code. [[Drop unnecessary parts like if(0){ ...}, move the JSON at top of the file, use the logic in bottom.]] Cleaner code will help you to find and solve issues easily.
Post a Comment for "`TypeError: $.Tween Is Undefined` In FireFox"