opensearch-project / project-website

The source to opensearch.org
https://opensearch.org
BSD 3-Clause "New" or "Revised" License
40 stars 476 forks source link

Reduce JavaScript Code Duplication From Includes #2297

Closed ghost closed 2 months ago

ghost commented 1 year ago

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.

wbeckler commented 6 months ago

Are you interested in submitting some PRs on this?