Is your feature request related to a problem? Please describe.
The new site design features includable JavaScript modules for carousels, interactive cards, and button states. Some pages include these modules more than once for different sets of card, or multiple carousels, etc. This results in statically built duplicate JavaScript code in the HTML pages where only the DOM selectors provided to the include creating different string values in the JavaScript.
Describe the solution you'd like
Refactor so that the functionality of the duplicate JavaScript can be in a single module that is paramaterized as runtime, and not build time.
Is your feature request related to a problem? Please describe. The new site design features includable JavaScript modules for carousels, interactive cards, and button states. Some pages include these modules more than once for different sets of card, or multiple carousels, etc. This results in statically built duplicate JavaScript code in the HTML pages where only the DOM selectors provided to the include creating different string values in the JavaScript.
Describe the solution you'd like Refactor so that the functionality of the duplicate JavaScript can be in a single module that is paramaterized as runtime, and not build time.