Improve app load performance #663
Merged
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.
Changes proposed ✍️
no-console
rule in eslint configurationerror
andinfo
console.log
scattered through the app. Update some console.log to beconsole.error
orconsole.info
apollo-boost
,graphql
,jsonwebtoken
,md5
,regenerator-runtime
emoji-toolkit
tonode-emoji
. Unpacked Size from (6.18 MB) to (429 kB)emoji-toolkit
was causing the dashboard page to freeze. By updating to a new package, the performance significantly improvedxlsx
topapaparse
. Unpacked Size from (7.5 MB) to (224 kB)Inter
font andremixicon
index.html
with a mechanism ofpreload
. This should improve performance, and prevent the fetching of these resources to block the pageunplugin-auto-import
andunplugin-vue-components
allow to have Element Plus imported by demandwebpack-deadcode-plugin
allows to log into the console unused codewebpack-bundle-analyzer
creates an interactive treemap visualization of the contents of all bundles (disabled unlessanalyzerMode is updated
)terser-webpack-plugin
helps to minify/minimize JavaScriptcss-minimizer-webpack-plugin
helps to optimize and minify CSSmini-css-extract-plugin
extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS and SourceMapsoptimization.splitChunks
indicates which chunks are selected for optimizationChecklist ✅
Feature
,Enhancement
, orBug
.frontend/.env.dist.local
,frontend/.env.dist.composed
.backend/.env.dist.local
,backend/.env.dist.composed
.