Skip to content
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

Eliminate artificial delay in swaps loading screen after request loading is complete #10496

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Feb 23, 2021

Previous to this PR, we were adding an artificial delay to the length of time that each logo, name and fox look was shown on the swaps loading screen after the network request that is loading is complete. This was to give the user time to reading names and logos.

It has been decided that it is preferable to move the user to the view-quote screen faster then to give the user extra time to read names. The most important reason for this is that it will increase swaps success rates as the shorter the time between the retrieval of quotes and the submission of swaps, the more likely that the swap will be successful. There have been recent api improvements that reduce the average time for the /trades request to respond, which means that the changes added in this PR will have an affect much more often.

This is what the loading screen will look like when the /trades request takes only 2-3 seconds.

Peek.2021-02-23.10-47.mp4

@danjm danjm requested a review from a team as a code owner February 23, 2021 14:26
@danjm danjm requested a review from Gudahtt February 23, 2021 14:26
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot
Copy link
Collaborator

Builds ready [08b75e4]
Page Load Metrics (574 ± 15 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint43726094
domContentLoaded5216705723115
load5226715743115
domInteractive5206695723115

Copy link
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels much nicer; I'm glad we're moving forward on this!

@danjm danjm merged commit 75a81c6 into develop Feb 23, 2021
@danjm danjm deleted the swaps-loading-time branch February 23, 2021 16:51
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants