Lazy submenus introduction

In larger menus, with lots of sub-, sub-sub- and sub-sub-submenus, the time it takes to create the menu can be significantly reduced with the "lazySubmenus" add-on. To do so, use the lazySubmenus options and configuration.

<script>
    document.addEventListener(
        "DOMContentLoaded", () => {
            new Mmenu( "#my-menu", {
                lazySubmenus: {
                    // lazy submenus options
                }
            }, {
                lazySubmenus: {
                    // lazu submenus configuration
                }
            });
        }
    );
</script>

Options for the "lazySubmenus" add-on

Option Datatype Default value Description
lazySubmenus A map of options or true for lazySubmenus.load.
{
load Boolean false Whether or not to lazy load submenus.
}

Configuration for the "lazySubmenus" add-on

The "lazySubmenus" add-on has no configuration options.

CSS variables for the "lazySubmenus" add-on

The "lazySubmenus" add-on has no CSS variables.

SCSS variables for the "lazySubmenus" add-on

The "lazySubmenus" add-on has no SCSS variables.

API methods for the "lazySubmenus" add-on

The "lazySubmenus" add-on has no API methods.

Next add-on:
Navbars