Comments

lpalgarvio’s picture

dropbydrop’s picture

isn't minification produces smaller results than gzip? or am i wrong?

derjochenmeyer’s picture

Minifiction and gzip are two different concepts.
- Minification minifies the content of a file by rewriting it (cant be undone).
- Gzip compresses the file without altering the content (unzipping restores the original file).

Minification is more effective in most cases where you have a human readable file as a source. The minification takes away some of the human readability without (in an ideal world) touching the readability for the machine.

But both concepts can (and should) be combined for optimizing filesize.

dropbydrop’s picture

Is there any module right now for D7 that minifies js?
If not, is there anything in the horizon?

lpalgarvio’s picture

i think that Minify is the only thing that didn't got in D7.

Page Speed report (firefox):

Minify JavaScript
Minifying the following JavaScript resources using JSMin could reduce their size by 12.2KiB (13% reduction).

    * Minifying http://.../files/js/js_m1OCm... could save 12.2KiB (13% reduction). See optimized version or Save as.

btw,
Minify CSS is in D7.
Minify HTML is not in D7.

derjochenmeyer’s picture

What about using "minify" for a D7 Version of Javascript Aggregator?

http://code.google.com/p/minify/

Here are some features from the list. We dont need all of this, but its all optional as I understand it:

* Combines and minifies multiple CSS or JavaScript files into a single download
* Uses an enhanced port of Douglas Crockford's JSMin library and custom classes to minify CSS and HTML
* Caches server-side (files/apc/memcache) to avoid doing unnecessary work
* Responds with an HTTP 304 (Not Modified) response when the browser has an up-to-date cache copy
* Most modules are lazy-loaded as needed (304 responses use minimal code)
* Automatically rewrites relative URIs in combined CSS files to point to valid locations
* With caching enabled, Minify is capable of handling hundreds of requests per second on a moderately powerful server.
* Content-Encoding: gzip, based on request headers. Caching allows it so serve gzipped files faster than Apache's mod_deflate option!
* Test cases for most components
* Easy integration of 3rd-party minifiers
* Separate utility classes for HTTP encoding and cache control

Wim Leers’s picture

Subscribing.

nwe_44’s picture

subscribing

mehtatejas’s picture

subscribing

SeanBannister’s picture

sub

billmp123’s picture

subscribing

TNmoxa’s picture

subscribing

drupal a11y’s picture

Subscribe

bensnyder’s picture

subscribe

mikeytown2’s picture

Once advagg hits 1.0 I'll be porting it over to 7.x and/or combining it with these 2 projects http://drupal.org/project/core_library http://drupal.org/project/agrcache

7wonders’s picture

sub

pembertona’s picture

subscribe

derMatze’s picture

subscribe

Niklas Fiekas’s picture

Subscribe.

dropbydrop’s picture

subscribe

DonnyCarette’s picture

Subscribe

Sol Roth’s picture

Subscribe

mraichelson’s picture

subscribe

lpalgarvio’s picture

Title: Port to Drupal 7 » Javascript Aggregator » D7 port
Fidelix’s picture

Subscribing...

threading_signals’s picture

Looking forward to updates on this issue and #15. How long will this be postponed...?

Coupon Code Swap’s picture

subscribe

bryancasler’s picture

subscribe

mrfelton’s picture

subscribing

Jackinloadup’s picture

subscribe

Mafk’s picture

subscribe

wellsys_world’s picture

Subscribe

Refineo’s picture

subscribing

Refineo’s picture

Issue tags: +d7 ports

adding d7 ports tag

threading_signals’s picture

Since [[http://drupal.org/node/940342|issue 940342]] has been fixed, wondering when the port will take place. Thanks!

Jackinloadup’s picture

lpalgarvio’s picture

whats the status for 6.x?
still under development or do you advise users to switch to advagg?

and for 7.x?
will a release happen or similar modules will fill in the gap?

http://drupal.org/project/advagg - #1171546: AdvAgg - D7 Port/Re-write
http://drupal.org/project/core_library
http://drupal.org/project/agrcache
http://drupal.org/project/blackwhite

http://drupal.org/project/css_gzip was deprecated in favor of http://drupal.org/project/advagg