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

Optimize Poki sdk loading #12

Open
ekharkunov opened this issue Mar 26, 2024 · 0 comments · May be fixed by #18
Open

Optimize Poki sdk loading #12

ekharkunov opened this issue Mar 26, 2024 · 0 comments · May be fixed by #18

Comments

@ekharkunov
Copy link
Contributor

ekharkunov commented Mar 26, 2024

There are two ways how to speed up loading web game:

  1. Use tag to specify Poki domain. It helps to reduce time to connect to domain when game start loading Poki stuff.
  2. Use defer attribute for loading Poki sdk. It prevents loading all other stuff (like dmloader.js, etc.) from waiting for loading Poki sdk.
  3. Initialize Poki sdk before calling onRuntimeInitialized.

For more information:

Thanks @AGulev for ideas!

@ekharkunov ekharkunov linked a pull request Nov 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant