[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread amuhlou
I think this article may help: http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content On Jul 27, 3:51 am, Mushex Antaranian wrote: > $(document).ready(function() {  /* your code */ })  <-this means that > code inside {} brackets will execute after DOM is loaded.. >

[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread Insen
Maybe you can hide the elemets first(using css), then after the javascript loaded, modify elements and show them. This still isn't a nice way. On Jul 27, 8:59 am, Mutual Designs wrote: > How do I prevent the content loading on my website before the > Javascript loads. It seems that all of my Jav

[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread Mushex Antaranian
$(document).ready(function() { /* your code */ }) <-this means that code inside {} brackets will execute after DOM is loaded.. On Jul 27, 5:59 am, Mutual Designs wrote: > How do I prevent the content loading on my website before the > Javascript loads. It seems that all of my Javascript is lo

[jQuery] Re: Content Loads then Javascript

2009-07-27 Thread Mushex Antaranian
Hi Content must be loaded before you can do any manipulations with it via js.. Or you can load content via ajax calls ( i.e. $.load() ) and modify it before appending to document.. But it isn't the most nice way to do it.. Can you explain what exactly you are trying to do ?? Btw i think you are