-
AuthorPosts
-
April 8, 2014 at 3:15 pm #248791
Hi there,
This is something I just can’t seem to fix, no matter how much I fiddle. On this page http://goo.gl/V8XmFP there is a layer slider at the top.
Normally the slider has 2 slides with the same background image for both. In the general setting of the slider I have no background image.
The background image is of people sitting at a desk.The problem many of our visitors have is that it takes ages for the initial slide to trigger and they end up with a large white space at the top of the page for a while. It’s not to do with network bandwidth (although that makes it worse). Tracing things, the background slide image on initial load sometimes takes 2-3 seconds to even *think* about loading. I have the image in cache, so download times are not causing this. It’s like the 1st slider takes a while to start to show.
I thought that I could fix this by adding a background image to the general settings so it can display before the 1st slide starts to display. Although this helps, the general background won’t stretch to fit, so the overall layout gets screwed.
Right now I have the general background image and the same image on the slider too, but this causes a funny effect, depending on the width of the browser due to the slide stretching to fix vs the general background not.
Is there a way to fix this? I tried some CSS to force the background to stretch I picked up from another support ticket, but it didn’t work:
.ls-inner {
background-image: url(—image url here—);
background-size: contain;
background-repeat: no-repeat !important;
background-position: center center !important;
}April 10, 2014 at 2:35 am #249545Hi robwheatley!
Could it be that you have added a delay to the slider ? , your css it’s not being apply by the way, if you see at the bottom of the page, you have the css rule ( see on footer below Copyright Cogendo 2014 ).
Another problem could be your server or to much latency, or the response time it’s not so good.
Try or look the above, let us know if your problem got solved, if not, comeback with user / pass so we can look inside the back end.
Best regards,
DavidApril 14, 2014 at 3:23 pm #251111Been a bit busy, so it has taken me a while to reply.
First of all, thanks for pointing out the CSS problem.
I have made some improvements. This is what I did:
1) Checked I didn’t have a delay on the first slide – I didn’t
2) I applied that CSS properly, so a background image is applied – not ideal, but it helps
3) This seems to be the biggest improvement, but I don’t know why. I was using Cloudflare CDN to speed things up a little. I think it was causing problems itself. When applied, there is a subtle difference in site behaviour and layout, including delays in the first slide. It’s probably something to do with the way it compresses and minifies JS and CSS, meaning the browser can’t apply things as the screen build and the final layout is blocked for a while. The CND may increase the download speed, but page rendering is hampered. I will take a look at this another time to see if there are some different settings I can apply.For now, I will live with what I have until I have the time to look again.
Thanks.
April 15, 2014 at 7:09 am #251454Hi!
Ok, we’ll close the thread for now. Feel free to open a new thread if you need help.
Regards,
Peter -
AuthorPosts
- The topic ‘Layer Slider Delays – initial load’ is closed to new replies.