https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
r

rapid-mouse-10983

09/05/2023, 11:10 PM
hi long time user first time Slacker, Having some overall site performance issues, and any help would be greatly appreciated we currently init growthbook in our React app root file a la
Copy code
growthbook = new GrowthBook({someStuff})

growthbook.loadFeatures()

<SomeErrorProvider>
  <GrowthBookProvider>
    <SomeLesserProvider>
      <App params={params} />
    </SomeLesserProvider>
  </GrowthBookProvider>
</SomeErrorProvider>
was wondering if anyone new of a more ad-hoc way to implement GB so that we wouldnt have to use it sitewide, when we only have a handful of experiments on a handful of components. Any other suggestions regarding speeding up Growthbook are also welcome!! Thanks all Kev
s

swift-helmet-3648

09/06/2023, 12:19 AM
Hi Kevin, it's definitely possible to use GB in a more ad-hoc manner. You could use the JavaScript SDK instead and place it exactly where you need to use it. The JS SDK runs under the hood of our React SDK so it would be effectively the same thing.
👀 2
r

rapid-mouse-10983

09/06/2023, 7:31 AM
thank you Adnan, i will give this a whirl!
6 Views