Slideshow widget does not use pre-generated thumbnails (resizing in HTML)
-
Hello there,
I’ve been using the slideshow widget to display one of the galleries on the sidebar. This has worked quite well for years and years. However, only recently I have been fine-tuning the whole website to see if I can get a bit more performance, and, by using GTMetrix, the YSlow tests show that all slideshow images are being loaded at full size, and only resized in HTML (!).
I did run the function to create the appropriately sized thumbnails. Twice, to make sure. So why isn’t the widget using the thumbnails inside the slideshow? (Is it because it tries to be responsive somehow, and therefore needs to load the whole image before knowing what size the viewport is, and does the resizing in HTML?)
To see if the problem was only with the slideshow widget, I enabled shortcodes inside widgets, and tried to insert a gallery using a shortcode. This is what I used:
[ngg_images gallery_ids="12,13,14" display_type="photocrati-nextgen_basic_slideshow" gallery_width="160" gallery_height="94" cycle_interval="2" source="random" number_of_columns="1" show_slideshow_link="0" show_thumbnail_link="0"]
Again, the 160×94 thumbnails were pre-generated. Actually, this is worse than using the NextGEN slideshow widget — it pre-loads even more images, none of them thumbnails but rather the entire image. So the browser has to download a whopping 28 MB (!) just for the front page, to display a minimalistic design — clearly not something I’d like to see!
I am using the plugin to use Jetpack Photon for caching the images. Maybe that’s the problem? (I will try to turn it off and see what happens)
Or is it really a ‘feature’ of NextGEN Gallery, that all slideshows will pre-load a huge amount of images just to resize them in HTML?
If so, I’m almost tempted to design a new slideshow widget that will just use thumbnails… unless I’m clearly missing something.
Thanks in advance. No, I didn’t scroll through the whole 643 pages of comments to see if this has been asked before; I did a few searches, though, and if someone had a similar issue, I didn’t find it.
I’m using NextGEN Gallery 2.1.43; the server runs Ubuntu Linux 16.04, with nginx 1.10.0 (GD is enabled); the URL of the site where I’m testing this out is https://lisbon-pre-1755-earthquake.org, but I have at least another site with the same problem (and even far bigger images, and a more minimalistic design…), so fixing it for one should fix for the other as well.
- The topic ‘Slideshow widget does not use pre-generated thumbnails (resizing in HTML)’ is closed to new replies.