[jQuery] Blips in $("div").hide(); when using $(document).ready
Hi All,
I am using jquery to set up some basic show/hide functionality on a class of divs. My HTML looks something like
<div class="hide_this">
<textarea ...> ... </textarea>
</div>
...
The jquery code that hides all these at the beginning looks like
$(document).ready(function() {
$("div.hide_this").hide();
//other document ready code
});
<br clear="all">The app throws up about 10 or so of these divs and what I see is the textareas appear and then blip out of existence. It seems to me that the blips could be due to slow loading of the javascript. Is there a better way to hide these, or could this be a hardware issue (I am running the app on a mac mini in my apartement so I neither have server power or bandwidth - however this happens even if I am the only one using the app)? Could I have too much 'other document ready code' in there that could be causing the slow loading?
I am using the compressed jquery with the header
/*
* jQuery - New Wave Javascript
*
* Copyright (c) 2006 John Resig (<a href="http://jquery.com">jquery.com</a>)
* Dual licensed under the MIT (MIT-LICENSE.txt
)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006) $
* $Rev: 249 $
*/
I appreciate all your help.
Cheers,
Julius
--
-----------------------------------------------------
<a href="http://openwetware.org/wiki/User:Lucks">http://openwetware.org/wiki/User:Lucks</a>
-----------------------------------------------------
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/