Skip to content

Slow page loading times #143

@Pjero

Description

@Pjero

I've implemented a gallery on one of my projects using the code from the readme and the page load times in production on the gallery page are incredibly slow. I only need a gallery with 10 images max, but it is slow with just 4.

The view code:

 <%- @page.images.each do |image| %>
      <figure>
        <a href=<%= image.thumbnail(geometry: "1024x").url %> data-size=<%= "#{image.thumbnail(geometry: "1024x").width}x#{image.thumbnail(geometry: "1024x").height}" %> data-turbolinks="false">
          <%= image_fu image, '283x223#', alt: "Image description", itemprop: "thumbnail" %>
        </a>
        <figcaption itemprop="caption description"><%=image.title %></figcaption>

      </figure>
  <% end %>

I've tried it on another page (on a different and faster server) with the same results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions