---
title: "Breaking: #91563 - PHP-based JS + CSS inclusions for Frontend removed"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-91563"
source: "Changelog/11.0/Breaking-91563-PHP-basedJSCSSInclusionsForFrontendRemoved.rst"
typo3-version: "11.0"
typo3-major: 11
type: "breaking"
issue: 91563
forge: "https://forge.typo3.org/issues/91563"
tags: ["PHP-API", "FullyScanned", "ext:frontend"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Breaking: #91563 - PHP-based JS + CSS inclusions for Frontend removed {#breaking-91563}

See [forge#91563](https://forge.typo3.org/issues/91563)

## Description {#description}

In the past, TYPO3's `TSFE` object allowed to manually add CSS or JavaScript snippets via PHP code with the following method and properties:

-   `TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->setJS()`
-   `TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->additionalJavaScript`
-   `TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->additionalCSS`
-   `TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->JSCode`
-   `TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->inlineJS`

These have been removed due to better APIs like `PageRenderer` (available since TYPO3 v4.5) and `AssetCollector` (available since TYPO3 v10).

## Impact {#impact}

Accessing the method and properties will have no effect and trigger PHP errors.

## Affected Installations {#affected-installations}

TYPO3 installations with custom extensions using this functionality directly to inject custom CSS or JavaScript.

## Migration {#migration}

Use the `AssetCollector` API in PHP to add JavaScript and CSS code or use files directly.
