Skip to content

Slow App Loading with Substrate Connect Extension; Direct API Use Didn't HelpΒ #2665

@71walceli

Description

@71walceli

We're using the Substrate Connect (SC) extension to speed up blockchain connections, but our app still loads slowly in production, often taking 10+ seconds.

  • On localhost, the app connects in less than 5 seconds.
  • On deployed instances, the connection speed is inconsistent and mostly slow, similar to not using SC at all.
  • As a workaround, we tried using createScProvider directly, but no chain or parachain would connect with it, rendering app totally useless.

Steps to reproduce the issue

Steps to Reproduce the Issue

  1. Get to deployed instances
  2. App will take some time to load, as usual
  3. Install Substrate Connect extension (0.14.2).
  4. Run the app locally and observe the fast connection.
  5. Get to deployed instance.
  6. App may or may not load faster. Reload nornally or bypassing cache.
  7. Whenevber you reload, app's URL won't show up in SC addon UI, until it seems to get loaded.

Describe the results you received

  • With SC extension installed:
    • Localhost: Fast connection (<2s)
    • Deployed instance: Mostly 10+ seconds, sometimes faster as expected, but it feels as though SC wasn't installed for the most part.
  • With createScProvider directly:
    • No connection at all (no chain or parachain connects)

Describe the results you expected

  • With the SC extension installed, the app should consistently load faster both locally and when deployed.
  • Using createScProvider should allow us to connect directly.

Substrate-Connect version

0.14.2 (latest release & GitHub tag)

Provider

Chrome

Browser version

Brave Version 1.76.74 Chromium: 134.0.6998.89 (Official Build) (64-bit)

Additional environment details

No response

Additional information

Key Question:

Why does the app fail to load quickly in production despite the SC extension? Could this be an issue with how the extension interacts with deployed environments?

This keeps the focus on the slow loading issue, while mentioning the direct API attempt as a failed workaround. Let me know if you'd like further refinements! 😊

Screenshots

  • Video of the issue: Watch here.
  • Result of using the API directly
    • Image

Would appreciate any insights or fixes! πŸš€

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions