Topic: Page loading and refreshing

gentel priority asked 1 year ago


Hello, How can we put a page loading icon when the user is waiting for the page to load or when the user refreshes the page?

My second question: How can we load or refresh a page progressively by displaying a part of the page and waiting for the data to load for another part of the page?

Thanks


Mateusz Lazaru staff answered 1 year ago


Hi,

1.You can add MDB Spinner or your own icon to the HTML and then hide/remove it after the page loads:

window.addEventListener("load", () => {
 // add d-none class to the spinner or remove it from the DOM
});

2.Check these components. They handle delayed loading, probably just like you expect:



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: computer
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No
Tags