Forums
>
DotNetNuke®
>
Quick Tips
Delay display until all formatting scripts have completed
Last Post 05/09/2011 1:45 PM by
Joseph Craig
. 3 Replies.
Author
Messages
Andre Kok
Nuke Newbie
Posts:3
05/09/2011 7:17 AM
Hi,
I am using a number of galleries which do Javascript or Jquery formatting of the images on an unordered list of image links.
On a slow connection like we have here in South Africa is there a way of switching off this untidy display until the images are displayed properly.
I also need this for other elements on a page that loads slowly.
Thanks
Andre
Joseph Craig
DNN MVP
Posts:11667
05/09/2011 9:33 AM
Perhaps you could try wrapping all of the "untidy" content in a div that has CSS to display:none or set to invisible. Then, at the end of your javascript/jQuery, make it visible?
Joe Craig,
Patapsco Research Group
Complete DNN Support
Andre Kok
Nuke Newbie
Posts:3
05/09/2011 1:04 PM
Thanks that was one way I found but being a character 4gl coder historically I am having trouble with where exactly to put a script to do that as I am using UMG and EasyDNNGalleries to display the images.
If I have a div called wrapper and set the display to none at which point should I unset this.
Can it go in the Page Header or is that too early?
I really need some guidance as my clients are losing faith.
Regards
Andre
Joseph Craig
DNN MVP
Posts:11667
05/09/2011 1:45 PM
I was thinking of using jQuery's $(document).ready().
You might want to communicate with the UMG and EasyDNNGalleries developers to see if they have any ideas, too.
Joe Craig,
Patapsco Research Group
Complete DNN Support
Forums
>
DotNetNuke®
>
Quick Tips