Reply To: Reaction times recorded on ipad

PennController for IBEX Forums Support Reaction times recorded on ipad Reply To: Reaction times recorded on ipad


Hi Cory,

All the experiment is technically run on the client side: the browser interprets the javascript code and executes it, which means that once it has downloaded the script, it doesn’t really need an internet connection anymore. Of course things are more subtle—there could be asynchronous scripts for example, but we can ignore that here. The browsers still need to download any resources you use though, but that won’t impact performance per se: it might just introduce preloading delays. So the reaction times will be accurate but it could be that, if preloading fails, audio playback starts late for example. But if you use .settings.log("play") on your audio element (still an example of course) then you should be able to subtract its timestamp from a key.settings.log()‘s timestamp (again, for example) to measure the actual time that elapsed between the start of playback and the key press.

I don’t use iPads so I can’t test it for you now, but if you can run python on it you might want to give a shot at a local setup.