Any chance this module could use minified (not packed) JavaScript code from now on? Sure would save bandwidth for very little trouble.

Comments

gregarios’s picture

Sorry 'bout that link: minified

dave reid’s picture

Version: 6.x-1.9 » 6.x-1.x-dev

Seconded. The lightbox.js is nearly 45K. It would be great if a *.min.js versions of each js file could be added, and served by default.

EDIT: It's lightbox.js that's the biggie, not lightbox2.js.

ice5nake’s picture

+1

Lightbox is great but the lack of minification is very unsexy.

Libraries module support would be a nice companion to this as well.

dman’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

I'm surprised it wasn't minified, or didn't have the option.
I'm about to release a site I thought was graphic-heavy, but it seems that it's lightbox that is the single biggest file download for me.
Bumping version because - because it's a few years on and still open.

wizonesolutions’s picture

Issue summary: View changes

Still open, huh? Anyone have a good workaround for this?

wizonesolutions’s picture

StatusFileSize
new1.22 KB

I found a workaround: the Minify module. Unfortunately, it won't minify lightbox.js by default. The attached patch fixes that.

liezie_d’s picture

Thanks! This patch (#6) worked on my system.