https://github.com/appzic/js-helper-func
Vanila JavaScript DOM manipulation with maximizing minification
https://github.com/appzic/js-helper-func
dom-manipulation minify-javascript vanilla-javascript
Last synced: 3 months ago
JSON representation
Vanila JavaScript DOM manipulation with maximizing minification
- Host: GitHub
- URL: https://github.com/appzic/js-helper-func
- Owner: appzic
- License: mit
- Created: 2023-04-15T04:10:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-02T06:05:28.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T23:16:04.944Z (4 months ago)
- Topics: dom-manipulation, minify-javascript, vanilla-javascript
- Language: TypeScript
- Homepage:
- Size: 277 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Javascript Helper Functions
Maximizing JavaScript Minification with Browser-Specific Functions
## Table of Contents
- [Table of Contents](#table-of-contents)
- [Introduction](#introduction)
- [Functions](#functions)
- [Event related functions](#event-related-functions)
- [Element related Functions](#element-related-functions)
- [Attribute related Functions](#attribute-related-functions)
- [Class related Functrions](#class-related-functrions)
- [Contributing](#contributing)
- [License](#license)## Introduction
By providing browser-specific functions for commonly used DOM manipulations, "@appzic/js-helper-func" can help developers achieve more efficient minification and improve the overall efficiency of their web pages. This JavaScript library offers a collection of functions that developers can use instead of creating their own custom functions, potentially saving them time and effort. Additionally, by leveraging these functions, the minifier can better recognize and compress frequently used keywords, resulting in smaller file sizes and faster loading times for web pages. Overall, "@appzic/js-helper-func" is a valuable tool for developers who are looking to optimize the performance of their web pages, particularly in regards to DOM manipulations.
## Functions
### Event related functions
- `addEventListener`
- `addEventListenerMulti`
- `addEventListenerToDocument`
- `addEventListenerToWindow`### Element related Functions
- `getElementById`
- `querySelectorFromElement`
- `createElement`
- `createCustomElement`### Attribute related Functions
- `setAttributes`
- `getAttribute`
- `hasAttribute`### Class related Functrions
- `addClasses`
- `removeClasses`
- `hasClass`
- `toggleClass`## Contributing
We welcome contributions from the community! Please take a look at our [CONTRIBUTING.md](CONTRIBUTING.md) file for more information on how to get started. We appreciate all kinds of contributions, from bug reports and feature requests to code contributions and documentation improvements. Thank you for considering contributing to our project!
## License
[MIT](LICENSE) License.