At http://www.quirksmode.org/js/placejs.html
I found a discussion on how & where to place your javascript.
Toward the bottom of the page, PPK has a section titled Deprecated:
Direct JavaScripts, with a small blurb that says "Do not use direct
JavaScripts. This section is only maintained for historical reasons."
For clarity, he is referring to a practice like:
<script type="text/javascript">
// Some javascript here
</script>
So - this is deprecated? This is something that shouldn't be done?
I can think of many instances where this would be the only way to
accomplish some things, and at least a few where it is a preferable
solution to loading & executing a script from an external file.
So - is this really deprecated? Or is the information presented
innacurate? Or perhaps something in between?