Topic: Flicker in page load

snelledre free asked 3 years ago

Expected behavior I followed the sidenav tutorial from MDB. But i exspect with every page load no flicker in the content. Actual behavior By every pageload i see a flicker in the content. Resources (screenshots, code snippets etc.) You can see the example on and do some reloads. This is a clean one index file no more.

Magdalena Dembna staff commented 3 years ago

Please create a code snippet ( with your code, so I could work on a solution there. Best regards, Magdalena

snelledre free commented 3 years ago

I have made today a snippet. admin template with flicker

Magdalena Dembna staff answered 3 years ago

The default mode for the Sidenav component is over - so the flicker in your page was caused by initializing the sidenav in a standard mode and then changing it according to the window's size. To solve a problem add data-mode="side" to the sidenav element.

Best regards, Magdalena

snelledre free commented 3 years ago

Thanx for youre time. It works perfectly


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 2.0.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No