Simple Lightbox
[resolved] Unchecking Enable in media settings stops jquery.js from loading (3 posts)

  1. perryb
    Posted 3 years ago #

    I haven't tracked this down to an interaction with another plugin yet but if I uncheck Enable on Pages or Enable on Home Page etc in Media Settings this stops WordPress from loading jquery.js.

    I noticed the problem when one of my custom scripts stopped working on an archive page that I don't want light-box to load on. Rechecking solved the issue.

    So, barring some other filtering the light-box script will have be loaded on pages where I don't need it.

    Is it just me?


  2. Archetyped
    Plugin Author

    Posted 3 years ago #


    SLB does not unregister scripts that are registered by other code in WP. Does your custom script, theme, etc. explicitly load jQuery?

    Note that WP does not load jQuery on the frontend by default, so if there is no code to explicitly load jQuery on a specific page/post type, then jQuery will not be loaded. For example, SLB does not request jQuery to be loaded on pages when the "Enable on Pages" option is not enabled.

  3. Archetyped
    Plugin Author

    Posted 3 years ago #

    Marked as resolved due to inactivity.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic