• Resolved nefasis

    (@nefasis)


    I have pages on my website with hundreds of small thumbnail images (stored in tables), each linking to their bigger versions to be opened in Simple Lightbox. When loading these pages, there are over 1000 database requests, leading to a massive loading time of several seconds.

    Is this an expected behavior, and can I do something about this?

Viewing 1 replies (of 1 total)
  • Plugin Author Archetyped

    (@archetyped)

    SLB uses metadata (title, caption, description, etc.) from WordPress’ media library for display in the lightbox. While SLB retrieves the media library metadata in bulk, WordPress’ own built-in functions may only operate on a single URL at a time, resulting in increased individual database queries while parsing image links on a page.

    SLB limits requests and caches results as much as possible, but if support for attachment links and displaying media metadata in the lightbox are not important, then SLB may not be the right lightbox for your needs.

Viewing 1 replies (of 1 total)
  • The topic ‘Large number of DB requests on page with many images’ is closed to new replies.