Frontmatter
| id | 8434 |
| title | Use dynamic imports in Portal News TabContainer |
| state | Closed |
| labels | refactoringperformance |
| assignees | tobiu |
| createdAt | Jan 8, 2026, 8:00 PM |
| updatedAt | Jan 8, 2026, 8:02 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8434 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 8, 2026, 8:02 PM |
Use dynamic imports in Portal News TabContainer
tobiu assigned to @tobiu on Jan 8, 2026, 8:02 PM

tobiu
Jan 8, 2026, 8:02 PM
Input from Gemini 3 Pro:
✦ Refactored
Portal.view.news.TabContainerto use dynamic imports forBlogContainerandReleaseMainContainer. This aligns with the pattern used inPortal.view.Viewportand improves initial load performance.
tobiu closed this issue on Jan 8, 2026, 8:02 PM
Description To improve initial load performance and reduce bundle size for the Portal app, we need to refactor
Portal.view.news.TabContainerto use dynamic imports for its child views.Currently,
BlogContainerandReleaseMainContainerare imported statically, meaning they are loaded even if the user is not on the News tab or looking at that specific sub-tab.Tasks
BlogContainerandReleaseMainContainerinapps/portal/view/news/TabContainer.mjs.itemsconfig to use arrow functions with dynamic imports:module: () => import(...).Reference See
apps/portal/view/Viewport.mjsfor the established pattern.