While loop makes the browser freeze with Brython
问题 I’m trying to get the response of an api request made with ajax.ajax() and the response is stored into ['apiResponse'] in the HTML5 Local Storage (but the rest of the python function processes without waiting for it be put into localStorage). Because of this I need to wait for it before getting the response and I thought I could do what I did below for the program to wait before it proceed. Unfortunately the browser seems to freeze every time I put a while loop... If someone know how to make