Skip to content
Snippets Groups Projects
Commit f344429f authored by André Buchmann's avatar André Buchmann Committed by Oliver Bartsch
Browse files

[FEATURE] Add file embedding option to asset viewhelpers

The viewhelpers f:asset.css and f:asset.script are great but
missed an option to render referenced files inline.

A boolean option "inline" is now added to load the file contents
as inline styles or scripts. This is especially useful for
content elements which are used first in a page and need
some custom css to improve the Cumulative Layout Shift (CLS).

Resolves: #99510
Releases: main
Change-Id: Ic4282cd4a6ff00594a0aa0cbdf51f49d80806489
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84424


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarSimon Praetorius <simon@praetorius.me>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarSimon Praetorius <simon@praetorius.me>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
parent 93b7b68a
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment