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

WIP drop JS support for IE #3996

Closed
wants to merge 3 commits into from
Closed

WIP drop JS support for IE #3996

wants to merge 3 commits into from

Conversation

andysellick
Copy link
Contributor

What

Work in progress spike switching over to using type="module" for scripts, so that IE11 and below don't run any of our JavaScript. Needs some accompanying changes in both static and the application being rendered. Currently getting weird JS errors like application.js:367 Uncaught TypeError: Cannot read properties of undefined (reading 'GOVUKFrontend'), which looks more like a bundling error than an actual problem.

Why

alphagov/govuk-rfcs#171

Visual Changes

@AshGDS

- switch to type="module"
- remove polyfills
- remove references to polyfills
- check for possible need for extra semi-colons (was just trying this, not sure it helped)
Broke the styles though due to v5 upgrade
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3996 April 26, 2024 14:00 Inactive
@AshGDS
Copy link
Contributor

AshGDS commented Apr 26, 2024

@andysellick I think the issues you were having were due to using an old version of govuk-frontend, and I hackily got the JS to work now by upgrading to V5, but at the expense of the styles breaking. I think the old version of govuk-frontend was coupled to our Polyfills.

Therefore it might be worth basing the spike off the work already done in #3700

@AshGDS
Copy link
Contributor

AshGDS commented Apr 29, 2024

Superseeded by #4000

@AshGDS AshGDS closed this Apr 29, 2024
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.

None yet

3 participants