I have downloaded Glowscript Offline 3.2 zip file, and I manipulated some of the code in order to load a python file without user input (user no need to write the code).
However, it does not work because Javascript execute the code asynchronously. While the
$.get is reading the python file, Javascript directly execute the other functions without waiting. Therefore, it makes variable
text undefined. I have to click "run" button twice to run the code. Is there any method to solve this technical problem?