• Resolved rcgordon

    (@rcgordon)


    On the whole, I’m pleased with the speed improvement of your plug-in, but I’m noticing that Simple Lightbox often is not working as reliably as before I installed Async JS. If you wait long enough, it may work, or it may just load linked graphics in the WP default manner.

    I suspect that something in the Simple Lightbox package is being delayed too long. I’m pretty sure that the plugin is using wp_enqueue_script, but there are so many files, that tracking down all the instances is a pain.

    But I’m not sure how to determine which files need to be excluded, as there are a large number of JS files scattered through numerous folders within the plugin. It doesn’t seem as though you can do a bulk name exclude like “/wp-content/plugins/simple-lightbox/*”or something like that, right?

    What is my best option here?

    The website on which I’m experiencing the issue is: theshelterblog.com

    https://www.ads-software.com/plugins/asynchronous-javascript/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rcgordon

    (@rcgordon)

    Thread Starter rcgordon

    (@rcgordon)

    I did a global search through all the files of the Simple Lightbox plugin, and recorded the handles designated in each call to wp_enqueue_script, and excluded those by name, and that seems to have solved the problem I was having.

    In case anyone else wants to follow suit, the string that I added into the Exclude by Name field was:

    "nhp-opts-js,nhp-opts-field-upload-js,nhp-opts-select-hide-below-js,nhp-opts-field-radio_img-js,nhp-opts-field-multi-text-js,nhp-opts-field-date-js,nhp-opts-field-color-js,nhp-opts-checkbox-hide-below-js,nhp-opts-field-button_set-js"
    Thread Starter rcgordon

    (@rcgordon)

    Actually, I thought it was working, but it’s still erratic (mostly not working) when the plug-in is enabled.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Simple Lightbox Doesn't Always Work with Async JS Enabled’ is closed to new replies.