Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite homepage JS as an ES Module #5355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kr8n3r
Copy link
Contributor

@kr8n3r kr8n3r commented Jan 16, 2025

What

We want to migrate all of our legacy Javascript
files to ESM, so this is the latest in the series of conversions.

Rewrite follows the same conventions we previously used for FocusBanner, Collapsible checkboxes, ColourPreview, FileUpload and Autofocus.

Added bonus: removes the use of jQuery as well

In this PR we:

  • rewrite the module as ES Module
  • remove old module JS file
  • remove old module from the legacy bundle build

How to test

  • run locally
  • got to homepage
  • click on the top graphic 5 times
  • graphic should change

We want to migrate all of our legacy Javascript
files to ESM, so this is the latest in the series of conversions.

Rewrite follows the same conventions we
previously used for FocusBanner, Collapsible
checkboxes, ColourPreview, FileUpload and
Autofocus.

Added bonus: removes the use of jQuery as well

In this PR we:

- rewrite the module as ES Module
- remove old module JS file
- remove old module from the legacy bundle build
@kr8n3r kr8n3r marked this pull request as ready for review January 16, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant