I've bumped into an issue with this a few times recently on pages I've been looking at so I figured it was worth warning everyone to avoid this:
That little bit of inline javascript causes the browser to not load the external js at the same time as the css because it needs to block to execute the code.<link rel="stylesheet" type="text/css" href="my.css" /> <script type="text/javascript"> var1='some value'; var2=true; </script> <script type="text/javascript" src="my.js"></script>
Thanks to Steve's handy Cuzillion app I threw together a quick page with exactly that structure and this is how it loads:
Move the inline javascript up above the css
As long as the javascript isn't going to be modifying the css, you'll be a lot better off moving the inline code up above the css so it can execute without having to block anything else. If you're just setting variables for later javascript to use then this is a no-brainer.
Here is what it looks like with the inline javascript moved up above the css:
The javascript is back where it should be, loading in parallel to the css.