Closed (fixed)
Project:
Advanced CSS/JS Aggregation
Version:
7.x-2.x-dev
Component:
JS Compression
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2013 at 21:52 UTC
Updated:
20 Apr 2013 at 00:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
mikeytown2 commentedPutting the inline js into a file is somewhat interesting; but if one is doing that, do it manually. As for putting the js settings into a file, it is technically possible and in fact a lot easier to do with the new hook advagg_modify_js_pre_render_alter() but at this point in time would require a lot of work in order to do it right (404 protection, etc).
So for now this patch will allow one to compress inline js, js settings included. It has been committed.
Comment #2
mikeytown2 commentedAlso added in a patch to prevent negative ratios from being used (if compression made things worse, don't use it).
Comment #3
markhalliwellSweet, does this also at least aggregate inline JS into a separate file since Drupal settings can be different from page to page (admin wise). Just curious.
Comment #4
mikeytown2 commentedNo inline js gets put into a file. It does js compression inline, no new files created.
Comment #5
markhalliwellSorry, I completely misread your comment. It's been a long week.