PDA

View Full Version : Lightbox 2.+ linking after first loading images



RobinT
08-16-2007, 09:43 AM
1) Script Title: Lightbox 2.+

2) http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem:

Script working fine, but when the page is loading together with the image thumbnails lightbox isn't working yet. So If i click a thumb then it will load the picture in a new window and not in the nice layout of lightbox.

So did i do something wrong or is it possible to make the links of the thumbs clickable after the whole page is loaded?

jscheuer1
08-16-2007, 10:16 AM
So did i do something wrong or is it possible to make the links of the thumbs clickable after the whole page is loaded?

I'm not sure if this is what you really meant to ask. If it is, you did nothing wrong and the links are clickable after the whole page is loaded. The links are only not 'lightbox activated' while the page is loading. The script requires that the entire page be loaded before it can activate the links. To minimize the amount of time that takes, optimize your images (especially the thumbnails), avoid tables, use valid code, etc.

You might consider using slimbox:

http://www.digitalia.be/software/slimbox

which has a much lower script overhead, but otherwise looks and feels like lightbox. Lowering the script overhead is an additional measure that will help speed the page load.