Problem/Motivation

May be useful to add the possibility to exclude defer and async process for administration page or for a specific path.
Thank you

Comments

trickfun created an issue. See original summary.

aaronsansal’s picture

Status: Active » Fixed

Thanks for the suggestion! Fixed in 1.1.0 (commit 964cbc4).

The settings form has a new "Exclusions" section:

  • "Disable on the administration theme" (enabled by default, also for existing sites after drush updb).
  • "Excluded themes", to disable the module on any other theme.

Exclusions are per theme and not per path on purpose: when core (re)builds an aggregated file it only knows the theme and the libraries, not the page that requested it, so a path-based exclusion would generate aggregates that don't match the rendered page. For finer control (per library or file) you can use the new hook_agg_jscss_asyncdefer_strategy_alter().

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

aaronsansal’s picture

Version: 1.0.1 » 1.1.0

Status: Fixed » Closed (fixed)

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