does the D6 version not include the 'exclude' ability / feature?

justageek - February 5, 2009 - 20:22
Project:Javascript Aggregator
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:by design
Description

I installed 6.x-1.x-dev on latest D6, but I don't get the textarea to list javascript to be excluded, has that not been ported to D6 version?

#1

SocialNicheGuru - April 14, 2009 - 23:10

i am also looking for this.

#2

derjochenmeyer - May 1, 2009 - 12:27
Status:active» by design

The aggregation in Drupal 6 is not done by this module. Javascript Aggregator in D6 takes action only after the Core js aggregation. Excluding files form core aggregation is something this module can not influence.

#3

SocialNicheGuru - May 1, 2009 - 14:33

i was thinking more of modules like fckeditor that won't function correctly is their .js files are aggregated. Is there a way to exclude?

#4

derjochenmeyer - May 2, 2009 - 16:11

Drupal core is aggregating the module files. The Drupal 5 version of this module did the aggregation, version 6 only adds minification and gzipping, which is not compatible with all modules. Javascript aggregator just minifies the file that is aggregated by core and all active modules.

#5

delykj - September 21, 2009 - 18:19

It's not easy. You need to change module's code to exclude javascript aggregation in problematic situations.

For example:

From this:

drupal_add_js($path . '/admin_menu.js', 'module', 'header', TRUE);

To this:
drupal_add_js($path . '/admin_menu.js', 'module', 'header', TRUE, TRUE, FALSE); //last parameter is the key

 
 

Drupal is a registered trademark of Dries Buytaert.