Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fnagel/fe_performance
This extension helps to improve frontend performance in TYPO3 CMS
https://github.com/fnagel/fe_performance
frontend minification performance php typo3 typo3-cms typo3-cms-extension
Last synced: 4 days ago
JSON representation
This extension helps to improve frontend performance in TYPO3 CMS
- Host: GitHub
- URL: https://github.com/fnagel/fe_performance
- Owner: fnagel
- License: gpl-3.0
- Created: 2013-06-10T20:28:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T08:27:19.000Z (about 2 months ago)
- Last Synced: 2024-10-12T05:14:06.767Z (about 1 month ago)
- Topics: frontend, minification, performance, php, typo3, typo3-cms, typo3-cms-extension
- Language: PHP
- Homepage: https://extensions.typo3.org/extension/fe_performance/
- Size: 206 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# TYPO3 fe_performance
This TYPO3 CMS extension improves your frontend performance.
Adds HTML and JavaScript minification.
Comes with some useful tweaks to improve asset rendering.Supports JS added by TypoScript, PageRenderer or AssetCollector.
## Features
* JS added by TypoScript or PageRenderer
* Minification of JS (files and inline)
* Exclude per page inline JS from concatenation* JS added by AssetCollector (BETA!)
* Enable minify and gzip for JS files* Minify all generated HTML
## What it does
TYPO3 does gzip compression but no minification of JS files. This extension adds
JavaScript minification to files and inline scripts by using the
`jsCompressHandler` hook and `BeforeJavaScriptsRenderingEvent` event.
Usage: `config.compressJs` needs to be enabled, gzip compression works as before.When using `config.removeDefaultJS = external` TYPO3 generates temp JavaScript
files with all per page inline JS and some default JS. This way users need to
download code from static files multiple times, just because its merged with per
page inline JS. You could exclude these files from concatenation with static
files (includeJS and includeJSFooter) by enabling `excludeInlineJsFromConcatenation`
option in extension manager.### JavaScript minifiers
Choose the one best fitting for your needs. Configure this in the EM.
**JSMin+**
Widely used JS compressor. A PHP port of Brendan Eich's Narcissus original implementation.
http://crisp.tweakblogs.net/blog/6861/jsmin%2B-version-14.html**JavaScriptMinifier**
Used by the Wikimedia Foundation for different projects incl. Wikipedia.
Considered the most robust, stable and fastest one. Under active development.
https://github.com/wikimedia/mediawiki/blob/REL1_35/includes/libs/JavaScriptMinifier.php## Upgrade
### Version 2.2.0
Use "Flush TYPO3 and PHP Cache" in the "Admin Tools -> Maintenance" BE module.
Removed obsolete `moveInlineJsToFooter` option. Since TYPO3 v11 the asset collector is used
for inline JS and adds the default JS to the footer without any tweaks.### Version 2.0.0
Use "Flush TYPO3 and PHP Cache" in the "Admin Tools -> Maintenance" BE module.`
### Version 1.0.0
Use "Clear all caches including PHP opcode cache" and "Dump Autoload Information"
in the install tool (if needed for your setup).Please update the `minifier` configuration in the Extension Manager as the class names have changed.
## Feedback
Feel free to add bug reports via GitHub issues or send PRs.
## Links
* GitHub: https://github.com/fnagel/fe_performance
* Bugtracker: https://github.com/fnagel/fe_performance/issues
* Changelog: https://github.com/fnagel/fe_performance/commits