The function minify_js_alter() is called for any page also when minify_js is 0.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | unnecessary_use_of-2782051-10.patch | 2.49 KB | spaghettibolognese |
The function minify_js_alter() is called for any page also when minify_js is 0.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | unnecessary_use_of-2782051-10.patch | 2.49 KB | spaghettibolognese |
Comments
Comment #2
geberele commentedComment #3
geberele commentedTested with the wrong branch 7.x-1.x instead of 7.x-1.3.
Comment #5
geberele commentedComment #6
geberele commentedRight the test is failing because of 'ERROR: No valid tests were specified.'
The first patch was already fine.
Comment #8
geberele commentedComment #9
atul.bhosale commented@geberele
Condition "if ($minify_js) {...}" will prevent the capturing of js, which will result in "JavaScript files not found..." at Performance => Minify JavaScript files.
Comment #10
spaghettibolognese commentedI have updated the patch from #6 to work with the current version of this module.
@Atul Bhorsale: That should not happen. The patch just checks if the setting "Use Minified JavaScript files" on the performance page is enabled. I have tested this on a development environment and it works correctly.
Comment #11
sgdev commentedMarking as postponed. I don't think this patch is needed based on what I see in the current 7.x-1.x-dev version. Looks like it has been changed since this patch was created.
The code skips js_alter if
minify_jsis 0:If someone thinks this is still necessary, feel free to post a response.