Leaderboard doesn't update right away

My leaderboard isn't updating immediately. When I play the game, I do not show up on the leaderboard. If I play it again, I can see the entry from the previous attempt.

July 23, 2021, 3:33 pm

Click for thumbs down.0Click for thumbs up.0#1

It sounds like you're displaying the leaderboard before the call to add a new entry completes. As per the How to Use instructions: If you need to track from within the learning course whether the new row has been saved, create a variable stencilrendered and set its value to 0. After the record is saved, the value will increase by 1.

July 23, 2021, 4:00 pm

Click for thumbs down.0Click for thumbs up.0#2

I have created the stencilrendered variable, but there are no instructions on how to use the variable. It doesn't do anything automatically. What action causes the record to be saved?

July 23, 2021, 4:26 pm

Click for thumbs down.0Click for thumbs up.0#3

For anyone out there who might need the info, here is how I solved the problem. Execute the javascript at least one slide before you display the leaderboard. That seems to give the new record enough time to save.

August 9, 2021, 4:33 pm

Click for thumbs down.0Click for thumbs up.0#4