#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 19, 2017 8:21:09 GMT -8
Javascript is allowed between the <head> tags. That's where I place it whenever I include it in the Forum Wrapper template. Since the code he's using has $(document).ready() in place it shouldn't affect how it functions. Is there a reason then, why a lot of the javascript codes here (even those with document ready) indicate to place them outside of the <head> tags? Or is it just personal preference? Some might depend on the code, but for those that wait for the page to load it makes absolutely no difference how far into the document they're located.
|
|
Kami
Forum Cat
Posts: 40,204
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,204
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Mar 19, 2017 8:25:36 GMT -8
Is there a reason then, why a lot of the javascript codes here (even those with document ready) indicate to place them outside of the <head> tags? Or is it just personal preference? Some might depend on the code, but for those that wait for the page to load it makes absolutely no difference how far into the document they're located. TIL. Thanks :>
|
|
Former Member
inherit
guest@proboards.com
222576
0
Dec 4, 2024 16:19:53 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 19, 2017 8:46:53 GMT -8
Javascript is allowed between the <head> tags. That's where I place it whenever I include it in the Forum Wrapper template. Since the code he's using has $(document).ready() in place it shouldn't affect how it functions. Is there a reason then, why a lot of the javascript codes here (even those with document ready) indicate to place them outside of the <head> tags? Or is it just personal preference?
so where we at then ? i never said it had disappeared ... it's just on the quick reply atm The emphasised font is why I (and ♥ ℒʊ√ ♥ , likely) were under the assumption you couldn't see it. i meant it's gone from the qiuck reply ... sometimes it's there, sometimes it's not.
|
|
inherit
(?)?
188910
0
Jan 26, 2013 13:30:48 GMT -8
♥ ℒʊ√ ♥
Clouds float into my life no longer to carry rain or usher storm but to add color to my sunset sky.
10,458
January 2013
luv
|
Post by ♥ ℒʊ√ ♥ on Mar 19, 2017 10:46:54 GMT -8
Just an FYI ~ I put it in my Global Header so it would cover all of my themes.
Per template change is too much for me given the number of themes I have.
And yes, Kami , I assumed as you did. That the bar went MIA according to @joecool111 's post.
|
|