LearnNewsExamplesServices
Frontmatter
id7829
titleOptimize Stylesheet addon for SSR mode
stateClosed
labels
enhancementai
assigneestobiu
createdAtNov 20, 2025, 10:02 PM
updatedAtNov 20, 2025, 10:06 PM
githubUrlhttps://github.com/neomjs/neo/issues/7829
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 20, 2025, 10:06 PM

Optimize Stylesheet addon for SSR mode

Closed v11.8.0 enhancementai
tobiu
tobiu commented on Nov 20, 2025, 10:02 PM

Optimize Neo.main.addon.Stylesheet for Server-Side Rendering (SSR) mode.

Context: When Neo.config.useSSR is true, the initial HTML is pre-rendered on the server. This includes:

  1. FontAwesome CSS links.
  2. Global theme CSS.

Required Changes: In src/main/addon/Stylesheet.mjs, inside the construct method:

  1. Prevent loading FontAwesome if Neo.config.useSSR is true.
  2. Prevent calling addGlobalCss() if Neo.config.useSSR is true.

This prevents redundant network requests and double-loading of styles in SSR environments.

tobiu added the enhancement label on Nov 20, 2025, 10:02 PM
tobiu added the ai label on Nov 20, 2025, 10:02 PM
tobiu assigned to @tobiu on Nov 20, 2025, 10:05 PM
tobiu referenced in commit 92b8bd5 - "Optimize Stylesheet addon for SSR mode #7829" on Nov 20, 2025, 10:06 PM
tobiu closed this issue on Nov 20, 2025, 10:06 PM