data-sly-resource taking so much time to resolve the Experience fragment page path
We utilized the Experience fragment as the primary navigation (header navigation), and it contains a number of flyouts.
We used sly data-sly-resource="$@path=xffragmentpath, selectors='content', wcmmode='disabled'">/sly> to render the flyout on the page.
As shown in publish mode, the page takes a long time to load.
And we determined that the problem is caused solely by data-sly-resource.
The page has a lot of child pages; yet, if we do the same thing on a page with no child pages, it works properly.
Please advise any solutions to help me increase the performance of my site.