Alternatively:
Use the latent node instead, it will only execute the script once the data is loaded.