# psychJS.downloadResources is not blocking

**URL:** <https://discourse.psychopy.org/t/psychjs-downloadresources-is-not-blocking/12600>\
**Category:** Online experiments\
**Tags:** online, blocking, resources, pavlovia\
**Created:** [April 21, 2020, 4:21am UTC](https://discourse.psychopy.org/t/psychjs-downloadresources-is-not-blocking/12600 "2020-04-21T04:21:16Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 2, 2020, 1:11am UTC](https://discourse.psychopy.org/t/psychjs-downloadresources-is-not-blocking/12600/7 "2020-06-02T01:11:07Z")

</div>

It may be as simple as

```auto
if(testFile.exists()){
  continueRoutine=false;
}

```

where testFile is the final file to be downloaded (or the one needed most urgently)

---

_[View the full topic](https://discourse.psychopy.org/t/psychjs-downloadresources-is-not-blocking/12600)._
