Next Gen gallery is probably the most full-featured, customisable WordPress gallery plugin out there.
I’d been using it for a year or so before I read Dave Rupert’s post on optimising WordPress for speed. Looking at the source, I realised that Next Gen was loading additional jQuery script files even if they weren’t required for the gallery theme.
The solution is to block this in the wp-config.php file like so:
/* Prevent load of NGG JS */
define('NGG_SKIP_LOAD_SCRIPTS', TRUE);
/* That's all, stop editing! Happy blogging. */
Just what I was after. Thank you :)
Thank you! That was deadly simple.
Great!
I was always annoyed by that and couldn’t figure out how to prevent it.
Now the ‘head’ is much cleaner.
:)
Thanks!