![]() |
|
![]() |
||
![]() |
![]() |
|
[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date] <link> vs. <script> for external scripts
From: Andy Holmes <aholmes84@shaw.ca>
Date: Tue, 18 Nov 2003 10:15:41 -0800 To: www-html@w3.org Message-id: <3FBA61CD.1050106@shaw.ca> A couple of people were having a discussion on IRC the other day about the fact that <script> is used with a 'src' attribute to include external scripts rather than the link element. It seems to me more consistant and logical to use <link> for external resources like this and <script> for in-document scripts, such as <style> and <link> have a relationship for stylesheets. The only thing that is actually missing for <link> to be properly used is the 'script' link-type. The 'src' attribute on the <script> element could probably be deprecated if this link-type was added since it wouldn't be necessary anymore. Comments? - AndyReceived on Tuesday, 18 November 2003 13:18:41 GMT |
|
||||||||||||||||