feat(client): dynamic imports for large components and performance metrics#36
Open
cto-new[bot] wants to merge 1 commit intomainfrom
Open
feat(client): dynamic imports for large components and performance metrics#36cto-new[bot] wants to merge 1 commit intomainfrom
cto-new[bot] wants to merge 1 commit intomainfrom
Conversation
…performance monitoring This adds code-splitting via dynamic imports, route-based chunks, prefetching, and a performance monitoring suite that tracks Core Web Vitals, memory usage, bundles, and API timings. - Introduce route-based and component lazy loading with createLazyComponent - Update build to support feature-based and vendor chunks with manualChunks - Implement prefetching strategies (idle time, hover, viewport) - Add performance monitoring: Core Web Vitals (LCP, FID, CLS, FCP, TTFB), memory usage alerts, bundle analysis, and API metrics - Create utilities/hooks: bundleAnalyzer.ts, useAdvancedPerformance.ts, PerformanceWidget.tsx - Integrate preloading in App and extend LazyComponents with preloads - Align defaults for some lazy-loaded pages to support dynamic imports BREAKING CHANGE: some modules switched to default exports to support dynamic imports; update imports accordingly if you reference these modules directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces dynamic imports for large client components to improve initial load performance and adds a comprehensive performance monitoring suite.
Details