@mrbz – You could try a shortcode structure along the following lines to show a single image that when clicked will open the Lightbox Effect for the gallery:
[ngg_images gallery_ids=1 display_type=photocrati-nextgen_basic_thumbnails disable_pagination=1 images_per_page=1]
Thanks!
– Cais.
Thread Starter
mrbz
(@mrbz)
I like your suggestion Cais, but I want to trigger the lightbox from the gallery thumbnails displayed by the compact album. I ended up making a lot of customizations to the compact.php file. I sent the code to your support and she said she would forward on to the developers.
Essentially, for each gallery thumbnail, it creates a hidden div with all the image links in it. And the gallery thumbnail link calls jquery to trigger the first link hidden in the div.
Everything is working great– the only sad thing is that the lightbox takes around 5 seconds to load– but even if I display a single gallery of images– the lightbox still takes 5 seconds to load. The main culprit is waiting for the http://eg.eg/index.php/nextgen-pro-lightbox-gallery/1?page_id=370 request to respond when the lightbox starts. I looked at that response, and there isn’t much to it. Do you have any ideas why it is slow?
@mrbz – Without a real URL example, I can only guess … have you considered image sizes / quantity as factors in the load time?
– Cais.
Thread Starter
mrbz
(@mrbz)
There are 3 images of around 150kb each– but does that effect how long the http://eg.eg/index.php/nextgen-pro-lightbox-gallery/1?page_id=370 request takes?
I understand that you a real URL would be helpful. I will contact support if I need more help on this– I prefer not to put my clients websites on public support forums.
Anyway, It looks like all wordpress served content is taking a long time– between 1.5 to 4 seconds per page. This is okay for initial page loads, but the delay in opening the lightbox is jarring because it feels like a control on the page that should open immediately.
Thanks
@mrbz – Is there a dynamic nature to the gallery images … maybe something in the template customizations you added?!
– Cais.
Thread Starter
mrbz
(@mrbz)
The images and thumbnails are served up in 100ms or less. I think you are missing a very important thing that I am saying: The main culprit is waiting for the http://eg.eg/index.php/nextgen-pro-lightbox-gallery/1?page_id=370 request to respond when the lightbox starts.
Most index.php requests in the site are loading in 1.5 to 3 seconds, but those don’t seem so bad because they are for the initial page load. This index.php request is loading in 3 to 5 seconds– so it is taking longer than other requests– and it is more noticeable because it shows a control on the page instead of opening to a new page.
I first need to figure out why all the index.php pages of the website are so slow. After that, if the lightbox index.php page is still slow, I will contact nextgen support.
Thanks
@mrbz – Again, a link to the site may prove helpful … I really cannot offer any more without more information and first-hand observations.
– Cais.