The onReadyAsync()
function returns a Promise that resolves when a dataset is ready.
Similar to the onReady()
function, the onReadyAsync()
function allows you
to optionally perform actions once a dataset is ready. A dataset is ready after it has loaded its data
from the collection and updated all connected page elements with their corresponding values.
onReadyAsync()
differs from onReady()
in that onReadyAsync()
is promise-based,
whereas onReady()
is based on callback functions.