Closed (fixed)
Project:
Advanced CSS/JS Aggregation
Version:
7.x-2.x-dev
Component:
Modifier
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2017 at 14:36 UTC
Updated:
14 Nov 2017 at 21:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kevineinarsson commentedAttached patch attempts to fix this by specifically checking if deferring has been set to use this option, and if so, return early.
I'm unsure if this should be part of
advagg_mod_css_defer_page(), but from what I can tell this function is meant to check if deferring is enabled or not, rather than the actual method being used. If this is not the case it should probably be done there.Comment #3
kevineinarsson commentedComment #4
mikeytown2 commentedThanks for the patch! How does this look to you? Put the check for the foreach loop.
Comment #5
kevineinarsson commentedThat makes sense, but there still needs to be a return if no file is found within this conditional. As otherwise the page still matches through
advagg_mod_match_path(), unless you have the variable advagg_mod_css_defer_pages set by having previously used the whitelist option.Comment #7
mikeytown2 commentedThanks for your work on this! It's been committed.