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

Replace Stimulus with web components #669

Merged
merged 13 commits into from
Nov 4, 2023

Conversation

paulrobertlloyd
Copy link
Collaborator

Reading a little about web components, it seems Stimulus is adding little that can’t be done natively in the browser using custom elements.

This PR replaces all usage of Stimulus with custom elements. The impact of this change is slightly improved code coverage (tiny amount) and massively reduced JavaScript asset size, reducing the overall bundle from ~26 kB to ~10 kB.

@paulrobertlloyd paulrobertlloyd added code quality Making things easier to understand frontend labels Nov 4, 2023
@paulrobertlloyd paulrobertlloyd force-pushed the replace-stimulus-with-web-components branch from 73c662e to 366043b Compare November 4, 2023 23:31
@paulrobertlloyd paulrobertlloyd changed the title Replace stimulus with web components Replace Stimulus with web components Nov 4, 2023
@paulrobertlloyd paulrobertlloyd force-pushed the replace-stimulus-with-web-components branch from 366043b to ce0c967 Compare November 4, 2023 23:40
@paulrobertlloyd paulrobertlloyd marked this pull request as ready for review November 4, 2023 23:45
@paulrobertlloyd paulrobertlloyd merged commit 2073bf6 into main Nov 4, 2023
1 check passed
@paulrobertlloyd paulrobertlloyd deleted the replace-stimulus-with-web-components branch November 4, 2023 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Making things easier to understand frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant