Closed (fixed)
Project:
Javascript Aggregator
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 May 2009 at 14:35 UTC
Updated:
24 Dec 2010 at 01:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
derjochenmeyer commentedLooks good, but what about this?
Comment #2
robloachJavaScript Aggregator caches the compressed files once they are processed so this shouldn't be a problem.
Comment #3
derjochenmeyer commented@Rob Loach: Can we just add jsminplus.php to javascript_aggregator? Licence should be no problem?
Attached is a patch that introduces this idea by creating an option "Use JSMin+ instead of JSMin".
JS size with JSMin: 24 KB
JS size with JSMin+: 22 KB
Comment #4
derjochenmeyer commentedComment #5
derjochenmeyer commentedrerolling for current dev version.
Comment #6
robloachInstead of adding it as an option, what are your thoughts on fully switching to it instead?
Comment #7
derjochenmeyer commentedSure, i introduced an option only because I wanted a quick way to swtich between the scripts on various test-sties.
Do you see any disadvantage in using an option for both? Maybe in some environments JSMin works while JSMin+ produces errors?
rerolling again for current dev version after (http://drupal.org/cvs?commit=215432).
1. download and copy jsminplus.php to the javascript_aggregator dir (download from http://files.tweakers.net/jsminplus/jsminplus.zip)
2. apply patch to current 6.x-1.x-dev
Comment #8
derjochenmeyer commentedforgot the file... :)
Comment #9
Anonymous (not verified) commentedI get an error message when using this patch with 6x1xdev:
"Parse error: Illegal token in file '[inline]' on line 985"
Comment #10
wim leersReport it to the developer. He's very eager to get his hands on files that can trigger problems. Also note that a newer version of JSMIN+ has been released.
Comment #11
derjochenmeyer commentedcommitted: http://drupal.org/cvs?commit=241454
New version 6.x-1.3 released.
Comment #12
derjochenmeyer commentedComment #13
ClearXS commentedthere are several errors connected to this new feature; just search on "Parse error: Illegal token in file '[inline]' on line" ...
I'm not sure which module caused it together with activating JSMin+ (latest release in latest dev module) as I have many modules activated.
Others say EazyEdit (&FileField?) but I hadn't installed that module. Error disappeared on bringing JSMin+ back to JSMin
Comment #14
derjochenmeyer commentedPlease discuss if we should drop JSMin+ here: #940342: Javascript Aggregator: Allowed memory size ... exhausted