Simple Lightbox
Plugin is very resource intensive (5 posts)

  1. Wil
    Posted 3 years ago #

    I have the bare minimum options selected for the plugin but it is still very resource intensive, gobbling up almost 0.5s of loading time and accounts for 35% of the overall plugin loading time from a mixture of 29 plugins I have on my site.

    The options I have checked are:

      Enable Lightbox Functionality
      Enable on Posts
      Group image links by Post
      Default theme

    Why is the plugin taking so much time to do its thing?


  2. Archetyped
    Plugin Author

    Posted 3 years ago #

    I'd like to know as well! :)

    Can you provide more details regarding how you're arriving at these numbers so that I can take a closer look?

    The client-side output is only ~10kb when minified. Unfortunately, the WordPress plugin directory does not allow client-side scripts in plugins to be minified, so using a minification plugin may help to improve the loading time of this and other client-side scripts on your site.

    That being said, server configurations can vary wildly and can affect a site's performance. Network speed and latency can also greatly affect how quickly things load. If you can provide a link to a page that exhibits the issues your experiencing, I'd be glad to a take a closer look.

  3. Wil
    Posted 3 years ago #

    Thanks for replying.

    It all came about from looking into why our page loading speed was slow.

    I ran some pingdom tests and found that the initial wait time was super slow.

    That led me to analyse just what WordPress was doing in its initialisation, so I fired up P3 (Plugin Performance Profiler).

    It identified 4 plugins that were eating up a lot of resources on page loads, Simple Lightbox being one of them.

    So I set up a blank 3.5.1 test server and ran the tests with and without the plugin to see the performance difference.

    It was quite noticeable.

    Here are the images from the test:

    1. Vanilla 3.5.1 site with Genesis, WordFence and XCloner

    2. Same site as 1 with Simple Lightbox added

    3. Out website before tweaking

    4. Running P3 on our site
    Simple Lightbox plugin takes up 36.4% of the resources

    5. Running P3 again after I removed GOTMLS plugin and optimised JetPack, WidgetKit and Simple Lightbox

    6. Removing Simple Lightbox plugin and running pindom again

    That's all without any server optimisation.

    Hope that helps.


  4. Archetyped
    Plugin Author

    Posted 3 years ago #

    Thanks for the additional info.

    Strangely, it doesn't appear that SLB is being loaded on any of those Pingdom tests you posted screenshots of.

    Were you using any caching plugins during those tests (minification, file concatenation, etc.)?

  5. l7world.com
    Posted 2 years ago #

    Same problem.
    Only showing simple light box on posts, group, animations and loop.
    load time .48 seconds which is 69% of load time for 30 plugins.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.