WordPress.org

Forums

NextGEN Gallery
[resolved] Stop NextGen (v2) from loading scripts/css (13 posts)

  1. petter.ruud
    Member
    Posted 1 year ago #

    I want to skip the loading off all the scripts and css for nextgen gallery verion 2.

    define('NGG_SKIP_LOAD_SCRIPTS', TRUE); doesnt seem to work anymore.

    Thanks in advance.

    http://wordpress.org/plugins/nextgen-gallery/

  2. Kyprulez
    Member
    Posted 1 year ago #

    I was just going to post about this now. I have done anything I could imagine, but to no avail.

    At least, loading the scripts in the footer, just not in the head.

    Looking forward for an answer.

  3. DickRaney
    Member
    Posted 1 year ago #

    Same problem. Using twentythirteen theme with WordPress version 3.6.1.

    NextGEN loads 5 CSS files:

    • nextgen_gallery_related_images.css
    • jquery.lightbox-0.5.css
    • nextgen_basic_thumbnails.css
    • nextgen_pagination/static/style.css
    • nggallery.css

    I don't want any of them. I have custom CSS in my theme styles.

    Before version 2.0 we could easily turn off these CSS files as well as script files. That should be a basic settings option.

    IT IS GROSS TO MAKE SO MANY EXTRA HTTP REQUESTS FOR ONE PLUGIN.

  4. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    Hey all - just a note that I'll forward this to our developers to 1) ask if they can propose a quick fix and 2) get the concept of an option as proposed by @DickRaney on the table for discussion. If I get a quick fix, I'll post it back here again. Thanks (Erick).

  5. ss2gazzab
    Member
    Posted 1 year ago #

    Are there any updates on this?

    Really feel this should be treated as priority due to the amount of bulk requests that occur due to this.

    Thanks

  6. Padaben
    Member
    Posted 1 year ago #

    Hi all,
    yest I do think too this is too much to have so much external files loaded.

    thanks for quick update for a such awsome plugin
    B

  7. ss2gazzab
    Member
    Posted 1 year ago #

    Can you give us an update on this please photocrati ??

  8. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    All - We have released a new beta version that has improved resource handling that should help with at least part of the issues being noted here. Please have a look on this page: http://www.nextgen-gallery.com/nextgen-gallery-latest-beta/

    Let us know how it worked out for you with a Bug Report (http://www.nextgen-gallery.com/report-bug/ ... please reference this topic) if you are still seeing items of concern.

    Thanks!

    - Cais.

  9. Vahan4033
    Member
    Posted 1 year ago #

    HI, I have the same issue! I want totally disable all styles and scripts that nextgen loads.

    Please give me a snippet of code that dose it?

  10. reneequinn
    Member
    Posted 1 year ago #

    Try this ....

    add_action( 'wp_print_styles', 'deregister_next_gen_styles', 100 );

    function deregister_next_gen_styles() {
    wp_deregister_style( 'nextgen_gallery_related_images' );
    }

  11. Travis
    Member
    Posted 1 year ago #

    @reneequinn that is for styles, not styles and scripts

  12. Botrax
    Member
    Posted 11 months ago #

    I would certainly like to know how to disable all these extras scripts and CSS

  13. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @Botrax - It might be best to start a new topic on this since the last reply was over three months ago ... and the NGG_SKIP_LOAD_SCRIPTS constant was re-introduced back in version 2.0.66.16 (July 2014).

    Thanks!

    - Cais.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic