0

Hi guys. I could use a bit of help. I am receiving the lastLogout data from the DB, and if it's NULL, it means that I will start the tutorial because it's the first login. I am rendering with serverside, and I'm using handlebars. So the data is rendered nicely with
<div>
{{needTut}}
</div>
What is the best practice to watch for this piece of information from frontend javascript? Shall I simply create an event listener? It feels a bit dirty...

Comments
  • 1
    How about an script tag that defines some variables in the head an that is used by the other js parts? Either put it in first or defer everything else.
  • 0
    I think the bot does a good job.
  • 0
Add Comment