Re: javascript in <head> or in <body> ?

From: Date: Tue, 07 Aug 2007 19:41:50 +0000
Subject: Re: javascript in <head> or in <body> ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260315@lists.php.net to get a copy of this message
Check: http://developer.yahoo.com/performance/rules.html Satyam PS: The answer is, put styles at the top, scripts at the bottom., but there are many other tricks to improve performance. Otherwise, as for the standards, they can go anywhere. ----- Original Message ----- From: "C.R.Vegelin" <cr.vegelin@hetnet.nl> To: "php-general@lists.php.nt" <php-general@lists.php.net> Sent: Tuesday, August 07, 2007 10:19 PM Subject: [PHP] javascript in <head> or in <body> ? Are there any rules when to include javascript in <head> or in <body> ? For example, <script type="text/javascript"> function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value; self.location='QueryForm.php?Chapter=' + val ; } </script> TIA, Cor -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007 16:53

« previous php.general (#260315) next »