Hello, i have some code that i’m running in my masterpage.js to check time and conditionnaly render some elements, plus another DB call to populate a navigation element in my footer.
It’s running in my onReady function. I’m affraid that this code is running on every page change. How would i make the code run on first load only?
@russian-dima but that’s the point, my code runs only if the value in the memory is not true (meaning the first loaded page). When the value is true, it does not run.
and that’s exactly what Nicolas wanted.
Hi,
JD’s snippet helped for my conditionnal rendering issue. The DB call seems more tricky to implement in my scenario, its pretty static data so i just hard coded my array for now