Skip to main content

Loading State

Grid.js renders a loading bar automatically while it waits for the data to be fetched. Here we are using an async function to demonstrate this behaviour (e.g. an async function can be a XHR call to a server backend)

Live Editor


Other operations like searching and sorting happens immediately because the data has already been imported and cached by the Grid.js pipeline. We only pay the cost of importing initial data (setTimeout in this case)