• Hi, Thanks for your excellent plugin!!

    Feature request: an option to disable CSS/JS on pages not in use. Could use a similar approach like Simple Lightbox by Archetyped to disable.

    I only use the plugin for the WordPress gallery posts so loading CSS/JS on other pages would technically add a little more weight to the page.

    In Simple Lightbox / the in the activation section they use (check boxes).
    Example:

    Enable Lightbox Functionality (Default: Enabled)
    Enable on Home page (Default: Enabled)
    Enable on Single Posts (Default: Enabled)
    Enable on Pages (Default: Enabled)
    Enable on Archive Pages (tags, categories, etc.) (Default: Enabled)

    Thanks for you consideration. Again great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi,
    Thank you for reporting this issue.
    You’re right. I think that the additional settings are unnecessary. The scripts should only be loaded when the gallery is used. This is the most optimized solution and technically feasible.

    I going to add this feature in the future releases. Thanks ??

    Best
    Damian

    Thread Starter kenjah5321

    (@kenjah5321)

    Great! That sounds like the most logical thing to do.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature request: Option to disable CSS/JS on pages not in use’ is closed to new replies.