Log in

View Full Version : External file for Thumbnail Viewer II?



Tailslide
08-20-2005, 12:15 PM
Hi

I was wondering if you could advise me on this:

I'm using Script: Thumbnail 2 image viewer (http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm) on a family photo site. To help reduce the overall page size I was wondering if it's feasable to stick the workings of the script in an external .js file which would have all (about 100) the photos listed in it and then the individual pages just refer to the particular photo number.

It works on a single page as I've just tried it - but I don't know if having such a large number of images listed in the script in the external file will cause any problems or make the individual pages download slower - does that make any sense?

Thanks

jscheuer1
08-20-2005, 03:36 PM
If preloading is set to yes, it may slow down the loading of individual pages until all the images are preloaded, this may only be apparent on slow connections like dial-up or when there is high traffic or other bandwidth restrictions. It may be apparent on all connections. Even if it does not slow things down, it will add to the site's bandwidth requirements. That would only be a problem if your host sets limits on bandwidth. Otherwise, it should not be a problem.

Tailslide
08-20-2005, 03:43 PM
Thanks John