Frontmatter
| id | 7786 |
| title | Enhance App Worker to Handle SSR cssMap |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Nov 17, 2025, 11:44 PM |
| updatedAt | Nov 17, 2025, 11:49 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7786 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 17, 2025, 11:49 PM |
To support the SSR "takeover" process, the App worker needs to be aware of the CSS files that were already included in the server-rendered HTML. This prevents the client from redundantly re-requesting the same theme files.
Change:
src/worker/App.mjs->createThemeMap():Neo.config.cssMapafter the maintheme-map.jsonis loaded.Neo.config.cssMapexists (meaning it was passed from the SSR process), its contents are merged into the globalNeo.cssMap. This ensures that wheninsertThemeFiles()is called, it correctly recognizes which CSS has already been handled by the server.Neo.config.cssMapis deleted after the merge to prevent re-processing.This change ensures efficient and correct CSS management during the SSR takeover process.