-
Notifications
You must be signed in to change notification settings - Fork 1
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
MPDX-7878 - Dynamically loading field array on Add Multiple Contacts Modal #917
Conversation
Bundle sizes [mpdx-react]Compared against f8c580c
|
...opBar/Items/AddMenu/Items/CreateMultipleContacts/DynamicCreateMultipleContactsFieldArray.tsx
Outdated
Show resolved
Hide resolved
Yes, I tested it locally, as I didn't know you merged it into staging. That is where the 3 seconds came from. I do not see it taking longer with my fix, it takes about the same time. I've merged it with staging, and it's loading a few milliseconds faster (Or appearing to due to the modal rendering straight away). On your network tab, throttle your connection to |
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.
I tested this a couple times with preloading disabled. Here's the recording. With slow 3G throttling on localhost, the old version (i.e. the lazy-components
branch) takes 12.66s to render the modal content. The new version (your branch) shows the field headers in about 7s but takes 14.83s to render the rest of the modal content (~17% longer, probably due to the request waterfall I mentioned earlier). Personally, since they can see the modal title and the close button is functional, Since user can't start typing until the second load completes, I don't think it helps the UX to show the heading row early at the expense of slightly slowing down loading the rest of the content. But my measurements may not be representative, and I trust your judgement if you think this is a UX improvement, so I'm going to approve this.
Old.version.mov
New.version.mov
Thank you for showing me that; I can see how this might look better in the code than on the website. As there is already a loading icon on the modal when it loads slower and it seems to load fast for most users, I'm going to close this PR as I don't want to slow the modal dow futher. |
Description
The FieldArray on the Add Multiple Contacts Modal was taking at least 3 seconds to load. This fix shows the modal straight away and then loads in the FieldArray
Checklist: