No More Comments!
We know what language you’re speaking!
.js file. This lets you optimize, compress, debug, validate, etc. your code much more easily.
Most people tack on
src attribute like you should, the
type attribute is ignored. Instead, the browser relies on the web server to tell it the mime-type of the destination file and uses that.
Placement of Code is Very Important!
Yahoo! recommends putting your
tags as low in the
as possible so that the majority of content is loaded first. It also recommends putting all your CSS
tags as high in the
as possible so that CSS styling is loaded before content.
- Yes, there are always exceptions to every rule. Suffice it to say 99% of the time it’s a bad idea. ↩