I'm building a page that needs lots of JavaScript included in the <head> tag. Typically this is not a problem and works as it should, but when I have this much, for some reason only the latter two includes actually work:
<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));
});
</script>
When I have this, for instance, jquery.js and thickbox.js won't load and only the last two things work. If I switch them around, jquery and thickbox load, but the others are neglected.
Anyone know what's going on? doodhuh;
Try to load them at the end of the page.
i only know html that you use on myspace.
Quote from: Raekewn on February 22, 2009, 05:17:07 PM
Try to load them at the end of the page.
Uh aren't javascripts always loaded in the <head> tag
Quote from: lacette on February 22, 2009, 05:23:12 PM
i only know html that you use on myspace.
I'm sure using bold and italic tags aren't "knowing" html happydood;
Quote from: wziard on February 22, 2009, 05:25:11 PM
Uh aren't javascripts always loaded in the <head> tag
Not always I guess
http://betterexplained.com/articles/speed-up-your-javascript-load-time/
Quote from: Mettalik on February 22, 2009, 05:30:35 PM
I'm sure using bold and italic tags aren't "knowing" html happydood;
It's not knowing. It's common knowledge.
Quote from: MS. TRON BONNE on February 22, 2009, 05:32:48 PM
It's not knowing. It's common knowledge.
who uses tags anymore?
<head>
<style TYPE="text/css">
.dix{
font-weight: bold;
}
</style>
</head>
<body>
<div class="dix">BOLD TEXT ROFL</div>
Quote from: Raekewn on February 22, 2009, 05:35:08 PM
who uses tags anymore?
<head>
<style TYPE="text/css">
.dix{
font-weight: bold;
}
</style>
</head>
<body>
<div class="dix">BOLD TEXT ROFL</div>
yes styling with HTML is for faggot nubs
</body>
Quote from: Raekewn on February 22, 2009, 05:31:34 PM
Not always I guess
http://betterexplained.com/articles/speed-up-your-javascript-load-time/
k I tried that and the same weird thing happens.
Quote from: Raekewn on February 22, 2009, 05:35:08 PM
who uses tags anymore?
<head>
<style TYPE="text/css">
.dix{
font-weight: bold;
}
</style>
</head>
<body>
<div class="dix">BOLD TEXT ROFL</div>
wow that's not overcomplicating things n_u