PHPackages                             maximilian-walter/typo3-jshrink - 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. maximilian-walter/typo3-jshrink

AbandonedArchivedTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

maximilian-walter/typo3-jshrink
===============================

Integrates the library JShrink in the build-in JavaScript-compressor of TYPO3

v1.1.0(7y ago)0187GPL-2.0+PHP

Since May 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/maximilian-walter/typo3-jshrink)[ Packagist](https://packagist.org/packages/maximilian-walter/typo3-jshrink)[ RSS](/packages/maximilian-walter-typo3-jshrink/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

JShrink for TYPO3
=================

[](#jshrink-for-typo3)

[![License](https://camo.githubusercontent.com/dfc990ea0e8db3900a940c31379ed4ec4c1adabe075bdd787cf7fbdbf4270c96/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6178696d696c69616e2d77616c7465722f7479706f332d6a736872696e6b2e737667)](https://github.com/maximilian-walter/typo3-jshrink/blob/master/LICENSE.txt)[![Latest Stable Version](https://camo.githubusercontent.com/7ffdb1d9eed2ee2cb8b88ca881363b72234a817ab8f2d3a4c7f07d4ea8f191a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6178696d696c69616e2d77616c7465722f7479706f332d6a736872696e6b2e737667)](https://packagist.org/packages/maximilian-walter/typo3-jshrink)[![Total Downloads](https://camo.githubusercontent.com/e0bc9bd7e7786215bdb0331c6c71eaf7c17e83deb68c9827fd045dfe12599001/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6178696d696c69616e2d77616c7465722f7479706f332d6a736872696e6b2e737667)](https://packagist.org/packages/maximilian-walter/typo3-jshrink)

The TYPO3 core can compress CSS and JavaScript files to improve frontend-performance. Unlike CSS files the JavaScript files are only compressed with GZip and not minified. This extension integrates the popular library [JShrink](https://github.com/tedious/JShrink) to add this feature also for JavaScript.

This extension aims to be as lightweight as possible. Hopefully the minification will one day be integrated into the core to make this extension obsolete.

It is no replacement for much more powerful extensions like [Scriptmerger](https://typo3.org/extensions/repository/view/scriptmerger)!

Compatibility
-------------

[](#compatibility)

This extension uses a [XClass](https://wiki.typo3.org/XCLASS) to hijack the method `\TYPO3\CMS\Core\Resource\ResourceCompressor::compressJsFile()` and add the call to JShrink. This could break with every update of TYPO3, because this method is not defined as stable API. Please keep this in mind while your updating your instance.

If you have a better idea how JShrink could be integrated into the core, please drop me a line or create a pull request.

Currently supported versions: TYPO3 7.6.0 - 8.1.0 (newer versions should work, but are not tested yet)

Usage
-----

[](#usage)

Install the extension and make sure compression for JavaScript-files is [activated via Typoscript](https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#compressjs):

```
page.config.compressJs = 1

```

Installing
----------

[](#installing)

### Composer

[](#composer)

Installing JShrink can be done through a variety of methods, although Composer is recommended.

```
"require": {
  "maximilian-walter/typo3-jshrink": "~1.0"
}

```

The JShrink-library will be automatically installed as dependency.

### TER

[](#ter)

This extension can also be installed via TER. You have to search for the name "jshrink". If you do so, please make sure the class `\JShrink\Minifier` can be used.

Contribution
------------

[](#contribution)

Feel free to add issues or pull requests on GitHub. Code changes should follow the [Coding Guidelines of TYPO3](https://docs.typo3.org/typo3cms/CodingGuidelinesReference/).

License
-------

[](#license)

This extension is licensed under the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

Attributions
------------

[](#attributions)

The heavy lifting is done by the popular library JShrink -

The icon is based on Font Awesome by Dave Gandy -

Thanks to all contributors for all your work on those great projects!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~778 days

Total

2

Last Release

2876d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a545cc78014d6d71b9c2570a8c3bbc5dc7afd98fc9affdcbb0970234bc5d4115?d=identicon)[maximilian-walter](/maintainers/maximilian-walter)

---

Top Contributors

[![maximilian-walter](https://avatars.githubusercontent.com/u/1067260?v=4)](https://github.com/maximilian-walter "maximilian-walter (5 commits)")

---

Tags

javascriptJSminifiercompressorextensiontypo3jshrink

### Embed Badge

![Health badge](/badges/maximilian-walter-typo3-jshrink/health.svg)

```
[![Health](https://phpackages.com/badges/maximilian-walter-typo3-jshrink/health.svg)](https://phpackages.com/packages/maximilian-walter-typo3-jshrink)
```

###  Alternatives

[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[friendsoftypo3/tt-address

Displays a list of addresses from an address table on the page.

431.7M38](/packages/friendsoftypo3-tt-address)[quellenform/t3x-iconpack

Provides an iconpack-registry for custom iconpacks.

1542.7k25](/packages/quellenform-t3x-iconpack)

PHPackages © 2026

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