PHPackages                             webmodules/headjs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webmodules/headjs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webmodules/headjs
=================

HeadJS: Responsive Design, Feature Detections &amp; Asset Loading. The only script in your &lt;HEAD&gt;

1.0.3(10y ago)05021MITJavaScript

Since Sep 19Pushed 10y ago7 watchersCompare

[ Source](https://github.com/webmodule/headjs)[ Packagist](https://packagist.org/packages/webmodules/headjs)[ RSS](/packages/webmodules-headjs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

[![Head JS](https://camo.githubusercontent.com/2f01e05b32f182d14aac9607f71fe7d91ba00476a876516152038f23b059201d/687474703a2f2f686561646a732e636f6d2f736974652f6173736574732f696d672f6c6f676f2d6269672e706e67)](http://headjs.com)

\###Latest Version: v1.0.3 :: [Downloads](http://headjs.com/site/download.html) | [Docs](http://headjs.com/site/api/v1.00.html) | [News](http://headjs.com/site/blog.html) | [Intro](http://headjs.com)

\#####Status [![Build Status](https://camo.githubusercontent.com/a756a0568327f5387884f9da40e2af7a8dee6cc2a9d9462e8be9317b704e21ae/68747470733a2f2f7472617669732d63692e6f72672f686561646a732f686561646a732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/headjs/headjs)

\#####Tested with (..amongst others) [![Selenium Status](https://camo.githubusercontent.com/b9ca697895302cb12903da44d3af1dfa7c2e2425763c5102197d2521d6e28f70/68747470733a2f2f73617563656c6162732e636f6d2f62726f777365722d6d61747269782f69746563686e6f6c6f67792e737667)](https://saucelabs.com/u/itechnology)

\###Responsive Design, Feature Detections, and Resource Loading

- Speed up your apps: Load JS &amp; CSS asyncronously and in parallel, but execute them in order
- Load one asset if a condition is met, else fallback and load a different one
- Manage script dependencies, and execute callbacks once they are loaded
- Cross-browser compatible « pseudo media-queries » let you code against different resolutions &amp; devices
- Fix quirks in specific browsers by quickly applying dedicated CSS/JS logic
- Detect various browsers &amp; their versions
- Check if the client supports a certain Browser, HTML5, or CSS3 feature
- Automatically generates JS and CSS classes for browsers &amp; features that where detected
- Automatically generates CSS classes, to know what page or section a user is viewing
- Know if the user is in landscape or portrait mode
- Or whether the client is using a mobile or desktop device
- Get old browsers to support HTML5 elements like nav, sidebar, header, footer, ...
- ...
- **Make it, The only script in your &lt;HEAD&gt;**
    - ***A concise solution to universal problems***

\###Resources

- **WebSite**
    -
- **Bugs**
    -
- **Community Support**
    - [http://stackoverflow.com](http://stackoverflow.com/questions/tagged/head.js)
    - *Remember to tag your questions with*: ***head.js***
- **Feature Requests/Suggestions**
    - [http://headjs.uservoice.com](http://headjs.uservoice.com/forums/182905-headjs-feature-suggestions)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3895d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5b5b41a27c22c02fd7a9e66995586a7bc4851492eba68aa9b669faed3b9ccb9?d=identicon)[jqutils](/maintainers/jqutils)

---

Top Contributors

[![robert-hoffmann](https://avatars.githubusercontent.com/u/5472296?v=4)](https://github.com/robert-hoffmann "robert-hoffmann (220 commits)")[![lnt](https://avatars.githubusercontent.com/u/5462166?v=4)](https://github.com/lnt "lnt (4 commits)")

### Embed Badge

![Health badge](/badges/webmodules-headjs/health.svg)

```
[![Health](https://phpackages.com/badges/webmodules-headjs/health.svg)](https://phpackages.com/packages/webmodules-headjs)
```

###  Alternatives

[sensorsdata/sa-sdk-php

PHP SDK for Sensors Analytics

32343.4k2](/packages/sensorsdata-sa-sdk-php)[phamda/phamda

Auto-curried function library

1922.8k](/packages/phamda-phamda)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
