Title: Stop NextGen (v2) from loading scripts/css
Last modified: August 21, 2016

---

# Stop NextGen (v2) from loading scripts/css

 *  Resolved [petter.ruud](https://wordpress.org/support/users/petterruud/)
 * (@petterruud)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/)
 * 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/](http://wordpress.org/plugins/nextgen-gallery/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Kyprulez](https://wordpress.org/support/users/kyprulez/)
 * (@kyprulez)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116139)
 * 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.
 *  [DickRaney](https://wordpress.org/support/users/dickraney/)
 * (@dickraney)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116222)
 * 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.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116223)
 * 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](https://wordpress.org/support/users/dickraney/)
   on the table for discussion. If I get a quick fix, I’ll post it back here again.
   Thanks (Erick).
 *  [ss2gazzab](https://wordpress.org/support/users/ss2gazzab/)
 * (@ss2gazzab)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116245)
 * 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
 *  [Padaben](https://wordpress.org/support/users/padaben/)
 * (@padaben)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116246)
 * 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
 *  [ss2gazzab](https://wordpress.org/support/users/ss2gazzab/)
 * (@ss2gazzab)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116249)
 * Can you give us an update on this please photocrati ??
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116251)
 * 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/](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/](http://www.nextgen-gallery.com/report-bug/)…
   please reference this topic) if you are still seeing items of concern.
 * Thanks!
 * – Cais.
 *  [Vahan4033](https://wordpress.org/support/users/vahan4033/)
 * (@vahan4033)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116264)
 * 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?
 *  [reneequinn](https://wordpress.org/support/users/reneequinn/)
 * (@reneequinn)
 * [12 years ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116282)
 * Try this ….
 * add_action( ‘wp_print_styles’, ‘deregister_next_gen_styles’, 100 );
 * function deregister_next_gen_styles() {
    wp_deregister_style( ‘nextgen_gallery_related_images’);}
 *  [Travis](https://wordpress.org/support/users/tjtaylor/)
 * (@tjtaylor)
 * [12 years ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116283)
 * [@reneequinn](https://wordpress.org/support/users/reneequinn/) that is for styles,
   not **styles and scripts**
 *  [Botrax](https://wordpress.org/support/users/botrax/)
 * (@botrax)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116287)
 * I would certainly like to know how to disable all these extras scripts and CSS
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116288)
 * [@botrax](https://wordpress.org/support/users/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.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Stop NextGen (v2) from loading scripts/css’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 12 replies
 * 10 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/stop-nextgen-v2-from-loading-scriptscss/#post-4116288)
 * Status: resolved