Order execution of tabs' on startup script in a tab containner

Hi ignition people,

i have a tab container with 8 tabs. Each tab has an on-start script for tables and timeschart. i want to force an execution order, because i think all those scripts are launched randomly when opening the view, and this causes a slow loading of the first tab to show.

I tried to add a boolean variable (like a mutex ) to set to true at the end of the view script .

Now how to make another script wail till this variable is set to true?

or if you have any other efficient way to do this.

for now its working well with this :

while(True):
	if self.view.custom.MutexAcceuil:

but am nor sure if the while loop is the best solution

qst 2: will ordering scripts will make any change on the performance ?
Thank you