Search by

sgalinski / scriptmerger

sgalinski

CSS/Javascript Minificator, Compressor and Concatenator for TYPO3 - Highly configurable TYPO3 frontend performance extension for CSS/JavaScript concatenation, minification and compression with optional body parsing, async/defer loading, inline output, data-ignore exclusions, SRI integrity validation

Package info

gitlab.sgalinski.de/typo3/scriptmerger.git

Homepage

Issues

Type:typo3-cms-extension

pkg:composer/sgalinski/scriptmerger

Statistics

Installs: 58 673

Dependents: 2

Suggesters: 0

11.0.6 2026-11-03 10:10 UTC

README

License: GNU GPL, Version 2

Repository: https://gitlab.sgalinski.de/typo3/scriptmerger

Please report bugs here: https://gitlab.sgalinski.de/typo3/scriptmerger/-/issues

About

The scriptmerger merges and minifies all JS and CSS files into a single one. Files can be marked to be ignored by placing a data-ignore="1" attribute on their include tag.

Regression tests

tests/Unit/CssUrlProcessingTest.php covers SVG data URLs with embedded parentheses, spaces and escaped quotes, font data, and relative URL rewriting in the import processor and CSS URI rewriter.

tests/Unit/FrontendProcessingServiceTest.php covers middleware and event request propagation, missing or stale global request state, singleton reuse, unavailable TypoScript setup, and response content-length updates. Frontend processing loads settings from the request supplied by the middleware or content event on every call, including when the page cache is already warm.

Run the tests from a Website Base installation with PHPUnit and the TYPO3 core available:

composer phpunit -- vendor/sgalinski/scriptmerger/tests --unit-only