Skip to content

Optimize lazy load navigation #1514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 7, 2025
Merged

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Jul 3, 2025

Context

follow-up from #1505

Currently we are create a .nav.html file for every page that exists.
However, there are many duplicates as the navigation for sub pages are probably the same.

Changes

  • Only create a single .nav.html partial file for each cached navigation. This makes it possible to cache the navigation in browser.

@reakaleek reakaleek marked this pull request as ready for review July 3, 2025 19:51
@reakaleek reakaleek requested a review from a team as a code owner July 3, 2025 19:51
@reakaleek reakaleek self-assigned this Jul 7, 2025
public required string Id { get; init; }
}

public record EmptyNavigationRenderResult : INavigationRenderResult
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be a static property on OkNavigationRenderResult ?

e.g OkNavigationRenderResult.Empty then we can just have a single record NavigationRenderResult without an interface.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…r.cs

Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
@reakaleek reakaleek requested a review from Mpdreamz July 7, 2025 11:08
@reakaleek reakaleek merged commit 2037f09 into main Jul 7, 2025
17 checks passed
@reakaleek reakaleek deleted the feature/optimize-nav-lazy-load branch July 7, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants