Problem/Motivation

See discussion in #3493911: Add a CachedPlaceholderStrategy to optimize render cache hits and reduce layout shift from big pipe and #3493406: Add render caching for the navigation render array. Opening this issue for the actual conversion of the navigation render array to use a #lazy_builder from #pre_render, code is already in #3493911: Add a CachedPlaceholderStrategy to optimize render cache hits and reduce layout shift from big pipe.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#7 CleanShot 2025-02-05 at 22.19.41.gif536.1 KBlauriii

Issue fork drupal-3504386

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

catch created an issue. See original summary.

plopesc made their first commit to this issue’s fork.

catch’s picture

Status: Active » Reviewed & tested by the community

Looks great. If we are OK with layout shift in HEAD then I think this could land independently of #3493911: Add a CachedPlaceholderStrategy to optimize render cache hits and reduce layout shift from big pipe, so moving straight to RTBC.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Given we have the issue to fix the layout shift in progress already let's go ahead here.

Committed 5413e9f and pushed to 11.x. Thanks!

  • alexpott committed 5413e9f8 on 11.x
    Issue #3504386 by plopesc, catch: Use a placeholder for the navigation...
lauriii’s picture

Issue summary: View changes
StatusFileSize
new536.1 KB

I can't toggle the navigation anymore after this change 🤔

plopesc’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.