Results 1 to 5 of 5

Thread: Speed up or remove?

  1. #1
    Join Date
    Feb 2008
    Posts
    137
    Thanks
    18
    Thanked 2 Times in 2 Posts

    Question Speed up or remove?

    Ultimate Fade-in slideshow (v1.51)

    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    How to not let this script slow down the page?
    I tested it with a Web Page Analyzer and it says:
    15 HTTP Requests
    I also tested it with Firebug and it says:
    55 requests 247 KB (0 b from cache) 18.49s and the KB's climb with each image that loads.
    Without the script it says:
    15 requests 69 KB (0 b from cache) 5.74s
    How to speed up the site without removing the script?

    Cheers
    ASCII stupid question, get a stupid ANSI!
    Beta is Latin for still doesn’t work.
    Mac users swear by their Mac, PC users swear at their PC.
    Keyboard not found...Press any key to continue.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Are you talking about the demo page or your version?

    In any case, the images must be loaded, otherwise the slideshow will not work. You may reduce the number of requests and the time that they take by reducing the number of images, their size (both in dimensions and more importantly, bytes via optimization).

    Each image file used by a page requires one request. Multiple request may occur if these are being swapped, but that will be after page load and will take virtually no time, as the images will be cached by that point, regardless of what any analysis says.

    Also, I'm not sure of the accuracy of those figures. For one thing, once the images are loaded, they are cached. The time it takes must assume a given bandwidth, perhaps that is set unreasonably low.

    However, you may also want to consider switching to:

    http://www.dynamicdrive.com/dynamici...army/index.htm

    Which can be made to look just like Ultimate Fade, but uses incremental preload. That way only three images must be loaded as the page loads.

    If you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2008
    Posts
    137
    Thanks
    18
    Thanked 2 Times in 2 Posts

    Default

    Yes my version.
    I have managed to find a different slide show which seems to load quicker on my PC locally.
    The website in question is furkids

    Is the swiss army one quicker and smaller than the Ultimate Fade-in slideshow?

    Edit: I cleaned up a lot in the past few days, this seems to be the fastest I can get it with the current slide show.
    With my other slide show it says:
    40 requests 200 KB (0 b from cache) 6.3s //Major difference in load time.
    I will try an implement my other one first, if it's still slow then I will try the Swiss army.
    Last edited by student101; 01-21-2009 at 06:11 PM.
    ASCII stupid question, get a stupid ANSI!
    Beta is Latin for still doesn’t work.
    Mac users swear by their Mac, PC users swear at their PC.
    Keyboard not found...Press any key to continue.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There are only 20 requests from the slideshow. However the getpics files may make them count as double because the files must be requested from the server to populate the arrays, but the browser need not cache those requests, so it saves time on the client side. But the server's time in making and fulfilling those additional 20 requests figures in the page's load time. If the image arrays were hard coded to the page, there should be significant savings in time.

    Swiss Army will cut down on requests made prior to 'onload' so will speed page load. With two shows, it would be 6 requests. But then requests continue after page load, slowing the initial run through of the shows slightly until all images are cached - most of these requests are made and fulfilled while an image is displayed though, so if the images are small enough and the bandwidth is high enough, they will be unnoticeable. Swiss Army can work with the getpics files, but if these are used with any script they will put the same load on the server as mentioned above.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Feb 2008
    Posts
    137
    Thanks
    18
    Thanked 2 Times in 2 Posts

    Default

    I have changed the entire site to include a new slide-show! It's faster and unbelievable!
    Edit: Thank you for help here.

    Cheers
    ASCII stupid question, get a stupid ANSI!
    Beta is Latin for still doesn’t work.
    Mac users swear by their Mac, PC users swear at their PC.
    Keyboard not found...Press any key to continue.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •