thermobased / flask-webapp

0 stars 0 forks source link

Move the global variables initialization code to one function #7

Closed gnull closed 4 months ago

gnull commented 4 months ago

Previously, the code that was initialiaing the global variables and the code that was rendering the page were in different window-load handlers, so execution order was not guaranteed and this could cause race condition. Now the order is fixed and there should be no surprises :)