Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Add script

Reply
Thread Tools

Add script

 
 
shapper
Guest
Posts: n/a
 
      12-11-2008
Hello,

I am checking my web site according to Yahoo Best Practices and I get
a warning:

Put JS at the bottom
8 external scripts were found in the document HEAD. Could they be
moved lower in the page?

But shouldn't external scripts be loaded on the page head?

Thanks.
Miguel
 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-11-2008
shapper wrote:
> Hello,
>
> I am checking my web site according to Yahoo Best Practices and I get
> a warning:
>
> Put JS at the bottom
> 8 external scripts were found in the document HEAD. Could they be
> moved lower in the page?
>
> But shouldn't external scripts be loaded on the page head?


What made you think Yahoo was any authority on web design?

http://validator.w3.org/check?verbos...w.yahoo.com%2F
[Invalid] Markup Validation of http://www.yahoo.com/ - W3C Markup Validator

The home page is not nearly as bad as other areas...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
richard
Guest
Posts: n/a
 
      12-11-2008
On Wed, 10 Dec 2008 18:35:14 -0800 (PST), shapper <>
wrote:

>Hello,
>
>I am checking my web site according to Yahoo Best Practices and I get
>a warning:
>
>Put JS at the bottom
>8 external scripts were found in the document HEAD. Could they be
>moved lower in the page?
>
>But shouldn't external scripts be loaded on the page head?
>
>Thanks.
>Miguel



JS can be placed anywhere it is needed.
Some script is better at the bottom but not ALL script.
External scripts go in the "head".
Screw their "best".
 
Reply With Quote
 
Nik Coughlin
Guest
Posts: n/a
 
      12-11-2008
"richard" <> wrote in message
news:...
> On Wed, 10 Dec 2008 18:35:14 -0800 (PST), shapper <>
> wrote:
>
>>Hello,
>>
>>I am checking my web site according to Yahoo Best Practices and I get
>>a warning:
>>
>>Put JS at the bottom
>>8 external scripts were found in the document HEAD. Could they be
>>moved lower in the page?
>>
>>But shouldn't external scripts be loaded on the page head?
>>
>>Thanks.
>>Miguel

>
>
> JS can be placed anywhere it is needed.
> Some script is better at the bottom but not ALL script.
> External scripts go in the "head".
> Screw their "best".


All script should be external to the page and referenced in the head only.

http://en.wikipedia.org/wiki/Unobtrusive_JavaScript

 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      12-11-2008

"Nik Coughlin" <> wrote in message
news:ghq7eu$oel$...
> "richard" <> wrote in message
> news:...
>> On Wed, 10 Dec 2008 18:35:14 -0800 (PST), shapper <>
>> wrote:
>>
>>>Hello,
>>>
>>>I am checking my web site according to Yahoo Best Practices and I get
>>>a warning:
>>>
>>>Put JS at the bottom
>>>8 external scripts were found in the document HEAD. Could they be
>>>moved lower in the page?
>>>
>>>But shouldn't external scripts be loaded on the page head?
>>>
>>>Thanks.
>>>Miguel

>>
>>
>> JS can be placed anywhere it is needed.
>> Some script is better at the bottom but not ALL script.
>> External scripts go in the "head".
>> Screw their "best".

>
> All script should be external to the page and referenced in the head only.
>
> http://en.wikipedia.org/wiki/Unobtrusive_JavaScript


And wikipedia is a more authoritive reference than Yahoo?



 
Reply With Quote
 
richard
Guest
Posts: n/a
 
      12-11-2008
On Thu, 11 Dec 2008 18:12:29 +1300, "Nik Coughlin"
<> wrote:

>"richard" <> wrote in message
>news:.. .
>> On Wed, 10 Dec 2008 18:35:14 -0800 (PST), shapper <>
>> wrote:
>>
>>>Hello,
>>>
>>>I am checking my web site according to Yahoo Best Practices and I get
>>>a warning:
>>>
>>>Put JS at the bottom
>>>8 external scripts were found in the document HEAD. Could they be
>>>moved lower in the page?
>>>
>>>But shouldn't external scripts be loaded on the page head?
>>>
>>>Thanks.
>>>Miguel

>>
>>
>> JS can be placed anywhere it is needed.
>> Some script is better at the bottom but not ALL script.
>> External scripts go in the "head".
>> Screw their "best".

>
>All script should be external to the page and referenced in the head only.
>
>http://en.wikipedia.org/wiki/Unobtrusive_JavaScript



that source is about as authoratative as the posters in this group.
the wiki is not the "holy grale".

There are times when JS MUST be deployed at the bottom or in the
<body> tag. JS can also be deployed within other tags as needed.

you should try reading info at the w3c school reference site.
 
Reply With Quote
 
shapper
Guest
Posts: n/a
 
      12-11-2008
On Dec 11, 5:39*am, richard <mem...@newsguy.com> wrote:
> On Thu, 11 Dec 2008 18:12:29 +1300, "Nik Coughlin"
>
>
>
> <nrkn....@gmail.com> wrote:
> >"richard" <mem...@newsguy.com> wrote in message
> >news:.. .
> >> On Wed, 10 Dec 2008 18:35:14 -0800 (PST), shapper <mdmo...@gmail.com>
> >> wrote:

>
> >>>Hello,

>
> >>>I am checking my web site according to Yahoo Best Practices and I get
> >>>a warning:

>
> >>>Put JS at the bottom
> >>>8 external scripts were found in the document HEAD. Could they be
> >>>moved lower in the page?

>
> >>>But shouldn't external scripts be loaded on the page head?

>
> >>>Thanks.
> >>>Miguel

>
> >> JS can be placed anywhere it is needed.
> >> Some script is better at the bottom but not ALL script.
> >> External scripts go in the "head".
> >> Screw their "best".

>
> >All script should be external to the page and referenced in the head only.

>
> >http://en.wikipedia.org/wiki/Unobtrusive_JavaScript

>
> that source is about as authoratative as the posters in this group.
> the wiki is not the "holy grale".
>
> There are times when JS MUST be deployed at the bottom or in the
> <body> tag. JS can also be deployed within other tags as needed.
>
> you should try reading info at the w3c school reference site.


Yes I follow W3C advices ... that is why I thought it was strange
Yahoo advice.

So I am making it right.

Thank You,
Miguel
 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      12-11-2008
richard wrote:
> On Thu, 11 Dec 2008 18:12:29 +1300, "Nik Coughlin"
> <> wrote:
>
>> "richard" <> wrote in message
>> news:...
>>> On Wed, 10 Dec 2008 18:35:14 -0800 (PST), shapper
>>> <> wrote:
>>>
>>>> Hello,
>>>>
>>>> I am checking my web site according to Yahoo Best Practices and I
>>>> get a warning:
>>>>
>>>> Put JS at the bottom
>>>> 8 external scripts were found in the document HEAD. Could they be
>>>> moved lower in the page?
>>>>
>>>> But shouldn't external scripts be loaded on the page head?
>>>>
>>>> Thanks.
>>>> Miguel
>>>
>>>
>>> JS can be placed anywhere it is needed.
>>> Some script is better at the bottom but not ALL script.
>>> External scripts go in the "head".
>>> Screw their "best".

>>
>> All script should be external to the page and referenced in the head
>> only.
>>
>> http://en.wikipedia.org/wiki/Unobtrusive_JavaScript

>
>
> that source is about as authoratative as the posters in this group.
> the wiki is not the "holy grale".
>
> There are times when JS MUST be deployed at the bottom or in the
> <body> tag. JS can also be deployed within other tags as needed.
>
> you should try reading info at the w3c school reference site.\


Yeah, right. Watch out for all the errors though.


 
Reply With Quote
 
Chris F.A. Johnson
Guest
Posts: n/a
 
      12-11-2008
On 2008-12-11, shapper wrote:
> On Dec 11, 5:39*am, richard <mem...@newsguy.com> wrote:

....
>> you should try reading info at the w3c school reference site.

>
> Yes I follow W3C advices ... that is why I thought it was strange
> Yahoo advice.


There is no connection between the W3 Consortium (W3C) and
w3schools.com.

--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-11-2008
Chris F.A. Johnson wrote:
> On 2008-12-11, shapper wrote:
>> On Dec 11, 5:39 am, richard <mem...@newsguy.com> wrote:

> ...
>>> you should try reading info at the w3c school reference site.

>> Yes I follow W3C advices ... that is why I thought it was strange
>> Yahoo advice.

>
> There is no connection between the W3 Consortium (W3C) and
> w3schools.com.
>


Unfortunately too many are duped by the name!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a script from another script and other script does notdo busy wait. Rajat Python 3 01-08-2010 02:05 PM
RE: How to execute a script from another script and other script doesnotdo busy wait. VYAS ASHISH M-NTB837 Python 2 01-07-2010 08:18 PM
LocaWapp 09 - localhost web applications (add thread, add "Request" object, new "locawapp_main" function, fixed files.py," ...) . Python 0 05-12-2006 10:24 PM
System Requirements: Trying to add USB2 to be able to use iPOD and add DVD Burner core Computer Support 3 05-04-2005 10:09 AM
How to add shared assembly in the add reference babu dhayal via .NET 247 ASP .Net 2 08-17-2004 06:11 PM



Advertisments