I got the module working fine. It is compressing and aggregating almost all files fine except one.
The files is a javascript file. It is part of meanmenu jquery plugin: meanmenu/jquery.meanmenu.fork.js
It is inside a theme/js/meanmenu directory. What I could not figure out is why only this file is not getting compressed. Looking at the list of js files under information tab, the file is not listed. So I am suspecting the file is skipped or not seen by the module.

Other javascript directories/files under theme/js are getting compressed and aggregated fine.
There are no errors listed for this file under status report.

There is a strange overall message in status report : gzip is failing for js files. But it seems to be working for all files I can.

I tried to create debug output using advagg-debug=1 but don't know what it put in deblog but I can't see my dblog anymore. Probably a different issue.

Comments

ajayg created an issue. See original summary.

ajayg’s picture

Priority: Normal » Minor

If I use bundler and set it to target one javascript and also using modifier module tag all javascript for preprocessing then the module sees the file and is compressing fine. BUt don't know why it would skip otherwise if I don't use bundler and modifier module.

mikeytown2’s picture

How is the JS getting added to the page? Via https://www.drupal.org/project/responsive_menus, https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_... or something else?

dblog is located here admin/reports/dblog; under the modules page it's listed as "Database logging"

ajayg’s picture

It is getting added from template.php with a call to drupal_add_js as following
drupal_add_js(drupal_get_path('theme', 'themename') .'/js/meanmenu/jquery.meanmenu.fork.js', array('preprocess' => false));

I know the path to dblog, But there was something in Dblog after debug that It would crash if I goto admin/reports/dblog. I had to wait till that info was eventually wiped out.

mikeytown2’s picture

Category: Bug report » Support request

See drupal_add_js,

preprocess: If TRUE and JavaScript aggregation is enabled, the script file will be aggregated. Defaults to TRUE.

This is explicitly set to false. AdvAgg does not touch these files as they do not get aggregated. On the admin/config/development/performance/advagg/mod page "Enable preprocess on all JS" has nothing to do with the bundler; as this will override preprocess and make it TRUE for all files regardless of that setting.

In your template.php file change the code to this (remove the second argument).

drupal_add_js(drupal_get_path('theme', 'themename') . '/js/meanmenu/jquery.meanmenu.fork.js');

That should fix the issue for you.

ajayg’s picture

Status: Active » Fixed

Thank you for your prompt reply.

Status: Fixed » Closed (fixed)

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