Display loading gif before any .js is loaded
===

I have a gif that is on the screen saying loading, and once the page is loaded this image fads out and my animations etc begin.

What i want to achieve is to have my loading.gif visible before any of my javascript is loaded. 

Unfortunatly i am picking up someone elses code and it is fairly complex so i can't simply move my .js calls to the bottom of my html or wrap everything in a window.load. I was just wondering if there is anyway with js. or otherwise that i can force my gif to display before anything else is done.

I appologise for this being quite a vague question. 