Add spiner while retrieving data from both api and db. Expressjs and ejs project, not SPA application

Job ID: 33461704

Budget: €8 – €30 EUR

I want to implement this functionality https://stackoverflow.com/questions/71858027/nodejs-expressjs-add-a-spinner-while-fetching-data-from-api-and-db. My project has a route that before the rendering action, is querying an external database in order to get some data and use it on the render function. The process for fetching the data takes about 10 seconds, and I want to show a spinner/loader while I am waiting for the data. I want this to implement on nodejs with expressjs and ejs. The app I DO NOT WANT to be a SPA application
Related categories: CSS HTML5 Node.js Express JS