- Issue created by @tregonia
Not so much a bug, but more of an inefficiency.
The variable uswds_images
is defined in uswds_base_preprocess
, so it is available in all templates. However within the theme, this variable is only used in the page template, the pager templates, search block, and the government banner. This results in this variable being added in many instances where it is not needed.
Add a debug statement in the preprocess hook and load the site to count how many times the preprocessing is called.
Instead of adding the variable to all templates, only provide the variable when it is relevant.
TDB
None
TBD
None
Active
3.10
Code