Skip to content

Redundant JS in index.html when no feature flags are enabled #24206

@Legioth

Description

@Legioth

Description of the bug

Even if no feature flags are enabled, there's still some related JavaScript in the production index HTML document that doesn't really seem to serve any purpose:

window.Vaadin = window.Vaadin || {};
window.Vaadin.featureFlagsUpdaters = window.Vaadin.featureFlagsUpdaters || [];
window.Vaadin.featureFlagsUpdaters.push((activator) => {
});

Expected behavior

Expected to not have anything about features flags in the HTML if no feature flags are enabled.

Minimal reproducible example

  1. Run your favorite app without feature flags enabled in production mode
  2. Check the index HTML payload

Versions

  • Vaadin / Flow version: 25.1.3

Metadata

Metadata

Type

No fields configured for Bug.

Projects

Status

🔖 Low Priority (P3)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions