Literature DB >> 35581437

Precise display time measurement in JavaScript for web-based experiments.

Gáspár Lukács1,2, Andreas Gartus3.   

Abstract

Conducting research via the Internet is a formidable and ever-increasingly popular option for behavioral scientists. However, it is widely acknowledged that web-browsers are not optimized for research: In particular, the timing of display changes (e.g., a stimulus appearing on the screen), still leaves room for improvement. So far, the typically recommended best (or least bad) timing method has been a single (RAF) JavaScript function call within which one would give the display command and obtain the time of that display change. In our Study 1, we assessed two alternatives: Calling the RAF twice consecutively, or calling the RAF during a continually ongoing independent loop of recursive RAF calls. While the former has shown little or no improvement as compared to single RAF calls, with the latter we significantly and substantially improved overall precision, and achieved practically faultless precision in most practical cases. Our two basic methods for effecting display changes, plain text change and color filling, proved equally efficient. In Study 2, we reassessed the "RAF loop" timing method with image elements in combination with three different display methods: We found that the precision remained high when using either or changes - while drawing on a element consistently led to comparatively lower precision. We recommend the "RAF loop" display timing method for improved precision in future studies, and or changes when using image stimuli. We publicly share the easy-to-use code for this method, exactly as employed in our studies.
© 2022. The Psychonomic Society, Inc.

Entities:  

Keywords:  Computer; Display; JavaScript; Measurement; Online research; Precision; Timing

Year:  2022        PMID: 35581437     DOI: 10.3758/s13428-022-01835-2

Source DB:  PubMed          Journal:  Behav Res Methods        ISSN: 1554-351X


  19 in total

1.  Psychophysics in a Web browser? Comparing response times collected with JavaScript and Psychophysics Toolbox in a visual search task.

Authors:  Joshua R de Leeuw; Benjamin A Motz
Journal:  Behav Res Methods       Date:  2016-03

2.  The state of web-based research: A survey and call for inclusion in curricula.

Authors:  John H Krantz; Ulf-Dietrich Reips
Journal:  Behav Res Methods       Date:  2017-10

3.  Best practices: Two Web-browser-based methods for stimulus presentation in behavioral experiments with high-resolution timing requirements.

Authors:  Pablo Garaizar; Ulf-Dietrich Reips
Journal:  Behav Res Methods       Date:  2019-06

4.  The Geneva affective picture database (GAPED): a new 730-picture database focusing on valence and normative significance.

Authors:  Elise S Dan-Glauser; Klaus R Scherer
Journal:  Behav Res Methods       Date:  2011-06

5.  A primer on running human behavioural experiments online.

Authors:  Tijl Grootswagers
Journal:  Behav Res Methods       Date:  2020-12

Review 6.  Human research and data collection via the internet.

Authors:  Michael H Birnbaum
Journal:  Annu Rev Psychol       Date:  2004       Impact factor: 24.137

7.  QRTEngine: An easy solution for running online reaction time experiments using Qualtrics.

Authors:  Jonathan S Barnhoorn; Erwin Haasnoot; Bruno R Bocanegra; Henk van Steenbergen
Journal:  Behav Res Methods       Date:  2015-12

8.  Implementation of stimuli with millisecond timing accuracy in online experiments.

Authors:  Zhengguo Gao; Biao Chen; Tianwen Sun; Haoqiang Chen; Kai Wang; Peipei Xuan; Zhen Liang
Journal:  PLoS One       Date:  2020-07-10       Impact factor: 3.240

9.  Evaluating Amazon's Mechanical Turk as a tool for experimental behavioral research.

Authors:  Matthew J C Crump; John V McDonnell; Todd M Gureckis
Journal:  PLoS One       Date:  2013-03-13       Impact factor: 3.240

10.  Presentation accuracy of the web revisited: animation methods in the HTML5 era.

Authors:  Pablo Garaizar; Miguel A Vadillo; Diego López-de-Ipiña
Journal:  PLoS One       Date:  2014-10-10       Impact factor: 3.240

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.