LearnNewsExamplesServices
Frontmatter
id8434
titleUse dynamic imports in Portal News TabContainer
stateClosed
labels
refactoringperformance
assigneestobiu
createdAtJan 8, 2026, 8:00 PM
updatedAtJan 8, 2026, 8:02 PM
githubUrlhttps://github.com/neomjs/neo/issues/8434
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 8, 2026, 8:02 PM

Use dynamic imports in Portal News TabContainer

Closed v11.19.0 refactoringperformance
tobiu
tobiu commented on Jan 8, 2026, 8:00 PM

Description To improve initial load performance and reduce bundle size for the Portal app, we need to refactor Portal.view.news.TabContainer to use dynamic imports for its child views.

Currently, BlogContainer and ReleaseMainContainer are imported statically, meaning they are loaded even if the user is not on the News tab or looking at that specific sub-tab.

Tasks

  • Remove static imports for BlogContainer and ReleaseMainContainer in apps/portal/view/news/TabContainer.mjs.
  • Convert items config to use arrow functions with dynamic imports: module: () => import(...).

Reference See apps/portal/view/Viewport.mjs for the established pattern.

tobiu added the refactoring label on Jan 8, 2026, 8:01 PM
tobiu added the performance label on Jan 8, 2026, 8:01 PM
tobiu referenced in commit a189bfd - "refactor: use dynamic imports in Portal News TabContainer (#8434)" on Jan 8, 2026, 8:02 PM
tobiu assigned to @tobiu on Jan 8, 2026, 8:02 PM
tobiu
tobiu Jan 8, 2026, 8:02 PM

Input from Gemini 3 Pro:

✦ Refactored Portal.view.news.TabContainer to use dynamic imports for BlogContainer and ReleaseMainContainer. This aligns with the pattern used in Portal.view.Viewport and improves initial load performance.

tobiu closed this issue on Jan 8, 2026, 8:02 PM