many-father-18704
09/28/2024, 8:23 PMwindow.growthbook_queue = window.growthbook_queue || [];
window.growthbook_queue.push((gb) => {
if(gb.isOn("ff-name"))
console.log(true);
else
console.log(false);
});
and then I load the SDK
<script async
data-api-host="<https://cdn.growthbook.io>"
data-client-key="sdk-..."
src="<https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js>"
></script>
I'm testing a user that I know for a fact that the app targeted to participate in this feature (meaning the console suppose to print true). yet when the page loads, the scripts above runs, and the console prints false. Only when running the same command manually in the console a couple of seconds later the result is back as true.
I tried to run the code with/without the async script attribute - the results are the same.
Am I missing something here?...fresh-football-47124
fresh-football-47124
many-father-18704
09/29/2024, 4:03 PMmany-father-18704
09/29/2024, 4:04 PMfresh-football-47124
fresh-football-47124
fresh-football-47124
many-father-18704
09/29/2024, 4:12 PM