-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.13.100] Optimize initialization speed #2841
Conversation
69f3416
to
fb837bf
Compare
packages/yoroi-extension/app/components/common/CheckboxLabel.js
Outdated
Show resolved
Hide resolved
Not all import statements for SVGs is updated! this might cause crash for the extension when navigating to these page
e34ac57
to
9992d54
Compare
9204e71
to
6719315
Compare
@@ -39,7 +39,10 @@ export const generateAdaPaperPdf = async ( | |||
|
|||
const width = 595.28; | |||
const height = 841.98; | |||
const doc = new Pdf({ | |||
|
|||
const JsPdf = (await import('jspdf')).default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @yushih !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/check
(accidental request changes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/check
@@ -17,5 +17,6 @@ module.exports = { | |||
'jest-canvas-mock' | |||
], | |||
// ignore manifest.test.js file, because it isn't a test | |||
testPathIgnorePatterns: ['manifest.test.js'] | |||
testPathIgnorePatterns: ['manifest.test.js'], | |||
modulePathIgnorePatterns: ['jormungandr'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, forgot about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/check
db42116
to
da647f0
Compare
Please review commit c5d2601 individual if it helps.
ee7d093 makes perceived loading speed faster by loading wallet data after the main UI starts to render.
80f8576 loads SVGs on-demand (some of them are huge but rarely used). But because of it, all the SVG import statements need to be rewritten: c5d2601 is just mechanical changing of all import syntax for SVGs. Also, flow type of SVG imports must be fixed by bd83cd2.
Other commits should be straightforward by the commit messages.