An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

Javascript Helper Functions


Maximizing JavaScript Minification with Browser-Specific Functions



npm


npm


GitHub

## 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.