Support » Plugins » [Plugin: NextGEN Gallery] How to use NGG_SKIP_LOAD_SCRIPTS properly?

  • I love that this functionality is now built into NextGEN but I want to know the proper use of this function. I’ve been looking for something like this for a while.

    For instance, I’d love to use this on a website to block scripts/css from loading on any page which isn’t used by NextGEN gallery. However, as Alex has said a couple of times on the forums, adding this to the wp-config.php file will completely stop scripts from loading.

    First, does it prevent just JS or does it also prevent CSS from loading?

    Second, can this be used to only allow scripts to be loaded on certain pages and not on others? Or is this an all or nothing function?

    I’m not the first one who wants to know this answer! Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The constant just block script loading, CSS can be disabled via Style page

    If you just want to block a page where is NGG not used, you need to parse the content in advance, here is a good resource how you can do that :

    Load A Stylesheet Only If Use Gallery

    How can I disable the CSS via the style page? If it really is that easy, why not make it an option in the admin panel.

    – TICKBOX – make NextGEN Gallery only load it’s scripts and CSS when there’s actually a gallery on the page.

    It would reduce server load for the people who really need it and are not coding guru’s like yourself! 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Gallery] How to use NGG_SKIP_LOAD_SCRIPTS properly?’ is closed to new replies.