Apologies if this issue has already been discussed or resolved, but I could not find anything with regards to the D8 version. Again not sure if it's just me or if it's a global issue.

Issue

I have a gallery view with about 100 photos and using the infinite scroll feature I'm able to gradually load all the photos. However the problem lies when loading the next lot of photos (12 per load).

The photos being loaded are medium size (240 x 240), using the default 'Medium' image style.

All medium image styles photos are being created and saved to the correct file path as normal.

When scrolling to see the next group of 12 photos, it is taking about 20 seconds to load and display. I could understand a delay like this if the system were regenerating the photos each time, but it's not, they already exist and are being used by the view output.

Is anyone else experiencing this, or something similar with a slower than expected load of the additional items?

Here is the page with the issue: http://www.ausgrainsconf.com/gallery/agic-australia-2017

Scroll and you should see the 20 second delay before the next lot of images show.

Thanks in advance.

Comments

Stephen Ollman created an issue. See original summary.

Stephen Ollman’s picture

Issue summary: View changes
dawehner’s picture

One major issue you are probably struggling with is the fact that ajax requests in Drupal are post requests ... which results in render caching being completely disabled. You need render cache to function. For example I tried to port http://drupal.org/project/views_ajax_get (there is an issue), but its harder than you think it might be :)

Stephen Ollman’s picture

Outstanding!!

I installed the 'Views Ajax Get' module and configured:

* Once this module is enabled, enable the Views ajax get display extender (/admin/structure/views/settings/advanced)
* Enable on each view by editing the "Use AJAX" setting, and enabling GET.

Once I had viewed the entire gallery of images, which then cached everything, I was able to the revisit the page with a much quicker load time.

Thanks for responding!

Neslee Canil Pinto’s picture

Status: Active » Closed (works as designed)