Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

What does it do?

This module can provide a performance boost by reducing the processing time needed to render menus.

What type of sites can benefit from this module?

The performance increase available by using this module will be greatest for sites having:

  • A main menu or multiple menus with a few hundred menu items or more.
  • Access checks on menu items which involve database queries or other slow operations.
  • Large numbers of pages and visits.

Small sites are unlikely to see any significant benefit from using this module.

How large an improvement can be gained?

The bigger the volumes and the slower the access checks, the greater the improvement that is likely to be achieved. In a simulation with a main menu having 300 items and access checks requiring 10ms execution time, we found a 3 to 5 times improvement in average page load time shortly after clearing caches. YMMV.

There will most likely be no advantage, compared with using standard menus, once all pages are fully cached, other than a small reduction in cache memory use.

Where does this performance improvement come from?

Standard Drupal menus include active trail information. Because that is different for every page, individual menu structures have to be built for each page. With a Trailless Menu, a single cached structure can be shared for all pages. When caches have recently been cleared, this means that there is a far greater probability that a visitor will hit a page where the menu is already in cache.

Advantages

  • Faster performance and reduced loading, especially after caches have been cleared.

Downsides

  • Highlighting the active-trail menu items, if required, will need to be done via JavaScript rather than CSS alone.
  • Menus will not automatically display as expanded. Again, JavaScript must be used to achieve this, if required.

How do I use it?

  • After installing the module, just go to its configuration page and select which menus you want to build as trailless.

How can I check whether it's effective on my site?

  • After clearing caches, measure page load times for several pages which share the same menu.
  • Repeat this test with and without menus set trailless.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.1 Stable Apr 14, 2024