
Holger M. answered 05/12/23
Certificate for Full Stack Web Development
If I understand the question correctly, you'd set the div to display: none; then create a few short functions in javascript. One function displays the spinner, one function hides the spinner, and a third function using setTimeout() that switches between the two once the data for the elements is fully loaded.