Skip to content

onReady() has significant performance issues #192

@dominikjasek

Description

@dominikjasek

According to your docs, we should delay rendering application with following code:

optimizelyClient.onReady().then(() => {
  setIsDone(true);
  isClientValid() && setIsClientReady(true);
});

This has significant performance issue in our application, it takes ~1s to initialize Optimizely this way. Do you have any recommendation to improve this? Maybe some caching strategy in localStorage or anything else?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions