Boyah Forums

General => The Lobby => Topic started by: russell on February 22, 2009, 05:12:57 PM

Title: does anyone happen to know (js/html)
Post by: russell on February 22, 2009, 05:12:57 PM
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:

Code Select
<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;

Title: Re: does anyone happen to know (js/html)
Post by: Daddy on February 22, 2009, 05:17:07 PM
Try to load them at the end of the page.
Title: Re: does anyone happen to know (js/html)
Post by: l a c e y on February 22, 2009, 05:23:12 PM
i only know html that you use on myspace.
Title: Re: does anyone happen to know (js/html)
Post by: russell on February 22, 2009, 05:25:11 PM
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
Title: Re: does anyone happen to know (js/html)
Post by: Mettalik on February 22, 2009, 05:30:35 PM
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;
Title: Re: does anyone happen to know (js/html)
Post by: Daddy on February 22, 2009, 05:31:34 PM
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/
Title: Re: does anyone happen to know (js/html)
Post by: Classic on February 22, 2009, 05:32:48 PM
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.
Title: Re: does anyone happen to know (js/html)
Post by: Daddy on February 22, 2009, 05:35:08 PM
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>
Title: Re: does anyone happen to know (js/html)
Post by: russell on February 22, 2009, 05:35:52 PM
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
Title: Re: does anyone happen to know (js/html)
Post by: Daddy on February 22, 2009, 05:36:44 PM
</body>
Title: Re: does anyone happen to know (js/html)
Post by: russell on February 22, 2009, 05:40:18 PM
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.
Title: Re: does anyone happen to know (js/html)
Post by: guff on February 22, 2009, 05:53:16 PM
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