Results 1 to 3 of 3

Thread: Ultimate Fade In Slideshow v2.0

  1. #1
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade In Slideshow v2.0

    I am trying to add image width and height attributes to the code. When I use the google page speed tool it tells me that images in the slideshow are missing width and/or height attributes. I've checked the site for the latest version (2.4) of the code, but I didn't see any change for this option. Does anyone know how I can add this to my slideshow?

  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

    Not required.

    By specifying the width and height in the on page call:

    Code:
    var mygallery=new fadeSlideShow({
    	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    	dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    		["http://i26.tinypi . . .
    You are giving the browser all it needs as far as speed in laying out the page. These are the dimensions that will be reserved for the slideshow. As for the individual images, the script preloads them. So the browser knows their dimensions before it needs to render them.

    Is your page very slow?
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I was only trying to make my score higher in the google page speed app. It's what told me that I need to add image width and height attributes to the code, to improve my site score. The page itself loads and works fine.

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
  •