# @util.js/jquery

> JavaScript utility methods for jQuery

Latest version **0.41.4** (published 2026-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @util.js/jquery
pnpm add @util.js/jquery
yarn add @util.js/jquery
bun add @util.js/jquery
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.41.4 |
| Published | 2026-09-19 |
| First published | 2019-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Chris Topher |
| Maintainers | creemama |
| Keywords | jQuery, loadjQuery, utilities, utility, utiljs |

## Links

- npm: https://www.npmjs.com/package/@util.js/jquery
- Repository: https://github.com/creemama/utiljs.git#master
- Homepage: https://github.com/creemama/utiljs/tree/master#readme
- Issues: https://github.com/creemama/utiljs/issues
- npm.io page: https://npm.io/package/@util.js/jquery

## Dependencies (2)

- [@util.js/promises](https://npm.io/package/@util.js/promises.md) 0.41.4
- [@babel/runtime-corejs3](https://npm.io/package/@babel/runtime-corejs3.md) 7.29.7

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.41.4 (latest) — 2026-09-19
- 0.41.3 — 2023-04-23
- 0.41.2 — 2022-11-27
- 0.41.1 — 2021-11-08
- 0.41.0 — 2021-05-08
- 0.40.1 — 2020-11-15
- 0.40.0 — 2020-11-15
- 0.39.2 — 2019-08-03
- 0.39.1 — 2019-07-27
- 0.39.0 — 2019-05-10
- 0.38.0 — 2019-05-08
- 0.37.1 — 2019-04-20
- 0.37.0 — 2019-04-14
- 0.36.1 — 2019-03-27
- 0.36.0 — 2019-03-24
- … 8 more at https://npm.io/package/@util.js/jquery/versions

## README

# @util.js/jquery

> JavaScript utility methods for [jQuery](https://jquery.com/)

<p>
  <a href="https://www.npmjs.com/package/@util.js/jquery"><img alt="NPM Status" src="https://img.shields.io/npm/v/@util.js/jquery.svg?style=flat"></a>
</p>

@util.js/jquery is part of [Util.js](https://github.com/creemama/utiljs).

<a name="JQueryUtils"></a>

## JQueryUtils API

**Kind**: global class  
**Access**: public  
<a name="JQueryUtils+loadjQuery"></a>

### jQueryUtils.loadjQuery(params, [callback]) ⇒ <code>undefined</code> \| <code>Promise</code>

Loads jQuery asynchronously and sends a notification when loading has finished

**Kind**: instance method of [<code>JQueryUtils</code>](#JQueryUtils)  
**Returns**: <code>undefined</code> \| <code>Promise</code> - undefined if a callback is specified or a Promise that returns jQuery once jQuery has finished loading  
**Throws**:

- <code>Error</code> If params is undefined, null, or params has an invalid window object

**Access**: public

| Param         | Type                  | Default                                                                                   | Description                                                    |
| ------------- | --------------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| params        | <code>Object</code>   |                                                                                           |                                                                |
| [params.src]  | <code>string</code>   | <code>&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js&quot;</code> | The jQuery script to load                                      |
| params.window | <code>Window</code>   |                                                                                           | The browser's window                                           |
| [callback]    | <code>function</code> |                                                                                           | A callback function that takes two arguments: error and jQuery |

**Example**

```js
const jQueryUtils = require("@util.js/jquery");
jQueryUtils
  .loadjQuery({ window })
  .then(($) => console.log($))
  .catch(console.log);
```

**Example**

```js
const jQueryUtils = require("@util.js/jquery");
jQueryUtils
  .loadjQuery({
    src: "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js",
    window,
  })
  .then(($) => console.log($))
  .catch(console.log);
```

**Example**

```js
const jQueryUtils = require("@util.js/jquery");
jQueryUtils.loadjQuery({ window }, (error, $) => {
  if (error) return console.log(error);
  console.log($);
});
```

---
_Source: https://npm.io/package/@util.js/jquery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
