Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | advagg-1066974.patch | 2.39 KB | mikeytown2 |
#3 | advagg-1066974.patch | 15.63 KB | mikeytown2 |
#2 | advagg-1066974.patch | 9.41 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedCan 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.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commentedbetter diff.
committed.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedComment #5
mikeytown2 CreditAttribution: mikeytown2 commentedMore 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.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted patch below
http://drupal.org/cvs?commit=504748
https://github.com/malsup/form/commit/947f03f60c3d6fcdde6570c60072503c44...