Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Overview

The JavaScript code in a variable dependency or interval expression is executed when the page is opened and with each change to the page (e.g. entering a variable's data).  If a significant amount of JavaScript code is executed, it can reduce the responsiveness of the browser.

Options

Some options to keep the responsiveness of the browser from being reduced:

  • Adding a page break between variable groups to increase the speed as only the code on each page is executed (see the Layout tab on the Variable Group Update page).
  • Utilizing local variables in place of repeating a condition with a StudyTRAX Variable Code.
  • Implementing a global variable to track the current state, thus hiding or disabling will be executed only if the state changes.  To implement a global variable, set the global variable before the main function. 

    A StudyTRAX variable cannot be used as a global variable before the main function.

Example


  • No labels