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

[Tech Debt] Remove dependency on jquery #3658

Open
1 of 14 tasks
joshuarrrr opened this issue Mar 22, 2023 · 0 comments
Open
1 of 14 tasks

[Tech Debt] Remove dependency on jquery #3658

joshuarrrr opened this issue Mar 22, 2023 · 0 comments
Labels
dependencies Pull requests that update a dependency file help wanted Community development is encouraged technical debt If not paid, jeapardizes long-term success and maintainability of the repository.

Comments

@joshuarrrr
Copy link
Member

joshuarrrr commented Mar 22, 2023

jQuery is an open-source JavaScript library designed to simplify client-side scripting of HTML. It provides an API for interacting with HTML documents, handling events, animating elements, and making AJAX requests.

To reduce memory usage and bundle size, and improve performance, jquery should be abandoned in favor of native built-in methods. In addition any dependencies that rely on jQuery should similarly be re-assessed, migrated, and removed.

Also requires a campaign to alert any plugins that rely on jQuery that they'll need to explicitly declare that dependency.

Current dependency: "jquery": "^3.5.0",

Note that a pre-requisite to removing the jquery dependency is to also remove our dependency on flot_charts: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/packages/osd-ui-shared-deps/flot_charts/API.md

Migration plan:

@joshuarrrr joshuarrrr added dependencies Pull requests that update a dependency file technical debt If not paid, jeapardizes long-term success and maintainability of the repository. help wanted Community development is encouraged labels Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file help wanted Community development is encouraged technical debt If not paid, jeapardizes long-term success and maintainability of the repository.
Projects
None yet
Development

No branches or pull requests

2 participants