Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 879 Bytes

2021-06-11-count-visible-children-for-offcanvas-menu-and-reduce-ajax-requests.md

File metadata and controls

16 lines (16 loc) · 879 Bytes
title issue author author_email author_github
Count visible children for offcanvas menu and reduce ajax requests
NEXT-14732
d.neustadt
dneustadt

Core

  • Added visibleChildrenCount property to CategoryEntity
  • Added aggregation of visible children count for last leafs of category tree in NavigationLoader

Storefront

  • Changed item-link.html.twig to use visibleChildCount to determine if menu item has children
  • Changed .js-navigation-offcanvas-initial-content to have class to determine if is initial content of root
  • Changed offcanvas-menu.plugin.js to not fetch offcanvas menu for root if initial content is of root already, reducing ajax requests
  • Changed back-link.html.twig to use URL without navigationId if target is root as content of root is already cached without navigationId, reducing ajax requests