Opera losing CSS after $(document).ready

Opera losing CSS after $(document).ready

I am having a problem with jQuery and Opera.

I have a CSS which sets a div to be display:hidden for the benefit of users without JavaScript.

I then use a $(document).ready and $('#div').show(); to make the div visible as soon as possible for users with JavaScript.

The problem I have is that under rare conditions in Opera when reloading everything (forcing it to ignore files in cache) it will run the show() in .ready before applying the CSS to make the div hidden.

I am testing extensively in Opera and Firefox and haven't noticed this behaviour in Firefox.

The CSS sheets are loaded in the <head> as should be and the JavaScript isn't included until just before the close of <body>

Has anyone come across a similar problem? And does anyone have any possible solutions.

I'm using jQuery 1.4 and Opera 10.10

Thanks.