[jQuery] Sometimes my dynamic content doesn't load - please help!

[jQuery] Sometimes my dynamic content doesn't load - please help!


Hi,
I've got a series of pages with different stylesheets and
different jquery content occurring. In Fx 2 on my mac things are
fine, I can click all of the links and pages load just fine. In
Safari, every time I click a link for the first time I get a white
flash and none of the content that is displayed dynamically by jquery
is displayed. However the second time I click a link the pages load
just fine and on all subsequent loads until the browser is restarted.
In Fx 3 on my mac I have the same problem except without the white
flash and it only occurs consistently on one particular page!
I'm using $(document).ready to load all of my jquery code - is
this wrong? I use it to setup my page and setup event handlers for
various clicks and mouseovers. What I basically do is have Joomla
insert all page content into a hidden div element, I then use Jquery
to put that content where I want it and setup neat animations and
such.
I searched the web for a solution to my problems and came up with
one possibility - the white flashes on Safari can be caused by the
stylesheet not having loaded fully, does anyone know if this is the
problem? If it is does anyone know how it can be fixed?
Please help, I don't know what I'm doing wrong and I don't know
how to craft the perfect search to reveal the answer!
Kind regards,
Ryan.