PDA

View Full Version : Ultimate Fade In Slideshow v2.0



jpax4218
04-13-2011, 07:54 PM
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?

jscheuer1
04-14-2011, 04:11 AM
Not required.

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


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?

jpax4218
04-17-2011, 06:11 PM
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.