View Full Version : JavaScript includes in <head>... possible to have too many?

02-23-2009, 01:20 AM
I have the following at the top of a page:

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="thickbox.js"></script>
<script type="text/javascript" src="mootools.svn.js"></script>
<script type="text/javascript">
window.addEvent('domready', function(){
var scroll = new Scroller('container', {area: 100, velocity: 1});
$('container').addEvent('mouseover', scroll.start.bind(scroll));
$('container').addEvent('mouseout', scroll.stop.bind(scroll));

The problem is that whatever the last two are, those are the two that work, and the other two don't load. Right now, with the code above, jquery.js and thickbox.js will not load, but the later two things work fine. If I switched them around, jquery.js and thickbox.js would work, but the others wouldn't.

This baffles me, however I'm not very experienced with JS so I might be missing something there. Anyone know what's up?

02-23-2009, 04:49 AM
The two framework don't play well with each other as both uses $.

You might find this link useful: