WordPress.org

Ready to get started?Download WordPress

Forums

Simple Lightbox
Plugin is very resource intensive (5 posts)

  1. Wil
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/simple-lightbox/

  2. Archetyped
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    http://limecanvas.net/test/wp351/speed-test/wp-351-genesis.png

    2. Same site as 1 with Simple Lightbox added
    http://limecanvas.net/test/wp351/speed-test/wp-351-genesis-simple-lightbox.png

    3. Out website before tweaking
    http://limecanvas.net/test/wp351/speed-test/lime-canvas-before-tweaks.jpg

    4. Running P3 on our site
    http://limecanvas.net/test/wp351/speed-test/plugin-performance-test-before.png
    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
    http://limecanvas.net/test/wp351/speed-test/plugin-performance-test-after.png

    6. Removing Simple Lightbox plugin and running pindom again
    http://limecanvas.net/test/wp351/speed-test/lime-canvas-after-tweaks.png

    That's all without any server optimisation.

    Hope that helps.

    Wil.

  4. Archetyped
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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.

    L7world.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.