Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Re: Menu Toggle - flashes mobile menu briefly on every page load

Home Forums Older releases 0.9.x Menu Toggle - flashes mobile menu briefly on every page load Re: Menu Toggle - flashes mobile menu briefly on every page load

#1644
admin
Keymaster

Hi Greg,

Hmm, yep I noticed it. It seems on pages that take a bit more time to load (i.e. to fire the DOMContentLoaded event) this effect might be noticeable. I will think about possibly a bit improved sample code in the docs but you can fix the issue in the meantime by adding the collapsed class to your menu tree in the source by default:

<ul id="main-menu" class="sm sm-gjs hidden-print collapsed">

Let me know if you still have any troubles.

Cheers!