title | issue | author | author_email | author_github |
---|---|---|---|---|
Count visible children for offcanvas menu and reduce ajax requests |
NEXT-14732 |
d.neustadt |
dneustadt |
- Added
visibleChildrenCount
property toCategoryEntity
- Added aggregation of visible children count for last leafs of category tree in
NavigationLoader
- Changed
item-link.html.twig
to usevisibleChildCount
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 withoutnavigationId
if target is root as content of root is already cached withoutnavigationId
, reducing ajax requests