From dda4502f5f5ffd0ecbccdf918747b182e847a54d Mon Sep 17 00:00:00 2001 From: Bartosz Herba Date: Thu, 17 Feb 2022 17:33:07 +0100 Subject: [PATCH] perf(theme): appHeader navigation improvement - add @nuxtjs/device package to recognize used device - remove mobile observer from header and replave it with device recognition tool - navigation is now lazy loaded, categories required for a navigation are not loaded at all on mobile devices --- packages/theme/components/AppHeader.vue | 52 ++++++------------- .../Navigation/HeaderNavigationItem.vue | 37 +++++++++++++ packages/theme/nuxt.config.js | 6 ++- packages/theme/package.json | 1 + yarn.lock | 7 +++ 5 files changed, 65 insertions(+), 38 deletions(-) create mode 100644 packages/theme/components/Navigation/HeaderNavigationItem.vue diff --git a/packages/theme/components/AppHeader.vue b/packages/theme/components/AppHeader.vue index 37db9e73a..c06e610de 100644 --- a/packages/theme/components/AppHeader.vue +++ b/packages/theme/components/AppHeader.vue @@ -19,8 +19,12 @@ /> -