Question: Basically my goal is for my page content div to be encapsulated in a round rectangle. Sort of like this:

```
Top of round rect (White)
Page content (uses a white rectangular css background) 
Bottom of round rect(White)

```

So then the page content section can be as long as I need and retain the round rect shape. I'm just not sure the best way to do this. I tried adding an img to the top of pagecontent div, but the transparent areas were overridden by the pagecontent's background. Thanks

Answer: 
The only validating way is to include it on the top (in the `<head>` section), but in the bottom will be faster to load - the rest of the page will load faster if you have script near the bottom, giving the user better response and making the experience better.

The problem is that most web browser stop rendering the HTML of the page until they've fetched and parsed all JavaScript code so far. So if you have a slow-loaded .js file included in the `<head>`, no HTML will be rendered and images will not even start to download before the .js have been downloaded and parsed, therefore frontend engineers propagate for putting the scripts as far down in the code as possible.

I usually just set a far-future Expires header for my .js files so they are cached in the browser for a long time and then include them in the `<head>` section. This gives good performance and doesn't look ugly :-)

But if you are serving external .js libraries (that are on other servers than your own), you will probably want them in the bottom because you can't change the Expires-header for other servers and you canät know that the other server always will be responsive.
I believe it's better to place script tags just before the closing body tag. Because:

* Elements are blocked from rendering if they are below the script.
* In IE6, IE7 resources in the page are blocked from downloading if they are below the script.

From [this](http://www.stevesouders.com/blog/2009/04/27/loading-scripts-without-blocking/) article. Also Yahoo's performance rule 6 is [Move Scripts to the Bottom](http://developer.yahoo.net/blog/archives/2007/07/high_performanc_5.html)