Loading in Content... Odd behaviour

  • skwtayler
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 1 month ago - 14 years 1 month ago #980 by skwtayler
Hi again,
A quick question. when a page loads with the Effects Slider, it appears to load in the content rather than in the module position. It looks very odd.

Could you help me with this? Other than that I love it and if we can sort this issue, I think it's 5 stars.

Great support too.

Sorry... the URL is www.khuslen.org
Last edit: 14 years 1 month ago by skwtayler.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 1 month ago #981 by milos
Hi,

What I see on your site is that Hot Effects Slider is loaded into module position (perhaps Advert1) of your template. It's not in content. Actually, plugins can be loaded in content, not modules (actually, modules can be loaded in content using loadmodule plugin, but you obviously didn't use it).

Please Log in to join the conversation.

  • skwtayler
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 1 month ago #982 by skwtayler
Yes. The problem is as the page loads... the Hot Effects Slider appears to load in the content. It doesn't load very well.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 1 month ago #983 by milos
I checked your website and perhaps it's true, but it's like that for less than a second (with my connection speed). Website looks fine once it's 100% loaded.

Please Log in to join the conversation.

  • skwtayler
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 1 month ago #984 by skwtayler
Yes I know... I feel the same. The client wants it to load properly. Any suggestions?
I tried another slideshow and it worked okay.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 1 month ago #985 by milos
Maybe you can try to preload images. Put this javascript before </head> of your template (index.php):
Code:
<script type="text/javascript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script>
Than, change <body> tag of the same file to be:
Code:
<body onload="MM_preloadImages('path_to_image/image1.jpg','path_to_image/image2.jpg')">
I listed only image1.jpg and image2.jpg in this sample. Of course, you should list all images.

Please Log in to join the conversation.

Time to create page: 0.314 seconds
Powered by Kunena Forum