@appzic/js-helper-func
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Javascript Helper Functions

Maximizing JavaScript Minification with Browser-Specific Functions

npm npm GitHub

Table of Contents

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

Package Sidebar

Install

npm i @appzic/js-helper-func

Weekly Downloads

2

Version

1.1.3

License

MIT

Unpacked Size

11.2 kB

Total Files

13

Last publish

Collaborators

  • appzic