Category: JS Objects
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Specifying the Order of Queries Run On Page Load

Issue

As an individual, I need to chain queries that run on page load, but I am unsure if this is possible. I would like to know how to create a JavaScript function that can run on page load and chain my queries. Additionally, any resources or documentation on JavaScript Promises that could be helpful would be appreciated.

Resolution

You can create a JS function JS Object that you set to run on page load and chain your queries there.
Here is also our documentation on JavaScript Promises that might be helpful.