marekskopal / typo3-google-font
Includes Google Font in your TYPO3 website.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: >=8.2
- typo3/cms-core: ^13.4
- typo3/cms-frontend: ^13.4
Requires (Dev)
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^11.0
- shipmonk/phpstan-rules: ^4.0
- slevomat/coding-standard: ^8.14
README
Description
This TYPO3 extension includes Google Font in your TYPO3 website.
Unlike regular TypoScript adding, this extension adds Google Font in an asynchronous, non-blocking way. It also performs a preconnect for maximum loading efficiency
Installation
Add the extension to your project using Composer:
composer require marekskopal/typo3-google-font
Configuration
-
Add the static template to your TypoScript template:
- Go to WEB > Template module.
- Select your root page.
- Click on Info/Modify.
- Click on Edit the whole template record.
- Go to the Includes tab.
- Add Google Font from the Available Items to the Selected Items.
-
Add you Google Font to the TypoScript configuration:
plugin.tx_msgooglefont {
settings {
fontSrc {
1 = https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap
}
}
}