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

Fix browser initial loading performance #1568

Merged
merged 5 commits into from May 28, 2020

Conversation

andrepimenta
Copy link
Member

@andrepimenta andrepimenta commented May 13, 2020

Description

This fixes the browser initial load performance issue. The initial loading was being delayed mainly because:

  • We were getting the InpageBridgeWeb3 from the Filesystem which is very slow. The fix was creating a helper that gets the InpageBridgeWeb3 on app init asynchronously so that when the user gets to the browser it is already loaded.
  • And also by an unnecessary timeout on the init function. The fix was bypassing this timeout on initial load.

This should make the time between the mounting of the browser component and the beginning of the loading be almost instantaneous.

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

Issue

Resolves #1543

@andrepimenta andrepimenta requested a review from danjm May 13, 2020 16:06
@andrepimenta andrepimenta added the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label May 13, 2020
@rickycodes rickycodes self-requested a review May 13, 2020 17:07
Copy link
Member

@rickycodes rickycodes left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

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

this is a great solution

@andrepimenta andrepimenta requested a review from a team as a code owner May 26, 2020 16:52
Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

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

QA Passed 👍

@ibrahimtaveras00 ibrahimtaveras00 added QA Passed A successful QA run through has been done and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels May 26, 2020
@andrepimenta andrepimenta merged commit f1bb1ae into develop May 28, 2020
@andrepimenta andrepimenta deleted the improvement/android-browser-load-performance branch May 28, 2020 11:21
@tangten
Copy link

tangten commented Jun 25, 2021

hi @andrepimenta, do we public InpageBridgeWeb3 file? I want to inject window.ethereum manually for my dapps browser personal

rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* Fix browser initial loading performance

* Update test

Co-authored-by: Ibrahim Taveras <ibrahimtaveras00@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release QA Passed A successful QA run through has been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android performance issue: delay of browser page load
6 participants