Just load the theme negotiators which are needed

Created on 15 April 2015, over 9 years ago
Updated 5 June 2023, over 1 year ago

Problem/Motivation

Currently we load every theme negotiator for every request. This leads to initialization of potentially obscure services, like batch and what not

Proposed resolution

  • Convert \Drupal\Core\Theme\ThemeNegotiatorInterface::applies to accept a route object
  • Store for each route, which theme negotiator apply on route rebuild time.
  • Use that information on runtime to not initialize all services

Remaining tasks

User interface changes

API changes

📌 Task
Status

Needs work

Version

9.5

Component
Theme 

Last updated about 10 hours ago

Created by

🇩🇪Germany dawehner

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024