Pass the files list through the hook; if file is on blacklist then do not compress.

GUI for blacklist & need some sort of way to test which files blows up compression. Need a data field on the files table to hold what files are safe for compression and what ones are not safe. Test by setting all to not working and then on success change the state to working. Some files work with jsmin; others with jsminplus, have this figure out what one will work.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Can check at runtime via a http request; if it comes back OK then we are good, if not then file won't compress. Make a way for multiple bundles to happen even though only one was requested. Put the bad JS code in-between 2 aggregates.

mikeytown2’s picture

Status: Active » Needs review
FileSize
9.41 KB
mikeytown2’s picture

FileSize
15.63 KB

better diff.
committed.

mikeytown2’s picture

Status: Needs review » Fixed
mikeytown2’s picture

Status: Fixed » Active

More fixes. Core's misc/jquery.form.js is minified thus jsmin+ blows up on it. Use the same hook for external cdn to replace with non minified version.

mikeytown2’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.