Commit 0077935e authored by catch's avatar catch
Browse files

task: #3585957 Prevent the navigation sidebar being rendered via big pipe

By: catch
By: godotislate
parent 3fd3ac2e
Loading
Loading
Loading
Loading
Loading
+5
Changes for core/modules/navigation/src/NavigationRenderer.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -86,6 +86,11 @@ public function buildNavigation(array &$page_top): void {
      ],
      '#lazy_builder' => ['navigation.renderer:doBuildNavigation', []],
      '#create_placeholder' => TRUE,
      // Prevent this placeholder being handled by Big Pipe.
      // @todo remove in https://www.drupal.org/project/drupal/issues/3505610
      '#placeholder_strategy_denylist' => [
        BigPipeStrategy::class => TRUE,
      ],
    ];
  }

+1 −1
Changes for core/profiles/demo_umami/tests/src/FunctionalJavascript/AssetAggregationAcrossPagesTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ protected function doTestNodeAddPagesAuthor(): void {
    $expected = [
      'ScriptCount' => 15,
      'ScriptBytes' => 3816051,
      'StylesheetCount' => 7,
      'StylesheetCount' => 6,
      'StylesheetBytes' => 619086,
    ];
    $this->assertMetrics($expected, $performance_data);
+7 −7
Changes for core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryAuthenticatedPerformanceTest.php: 7 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -127,28 +127,28 @@ protected function doTestNodePageAdministrator(): void {
    }, 'administratorNodePage');

    $expected = [
      'QueryCount' => 264,
      'CacheGetCount' => 268,
      'QueryCount' => 262,
      'CacheGetCount' => 265,
      'CacheGetCountByBin' => [
        'config' => 60,
        'bootstrap' => 15,
        'discovery' => 75,
        'data' => 13,
        'data' => 12,
        'entity' => 24,
        'dynamic_page_cache' => 1,
        'default' => 21,
        'routes' => 18,
        'routes' => 16,
        'render' => 18,
        'file_parsing' => 1,
        'menu' => 22,
        'file_parsing' => 1,
      ],
      'CacheSetCount' => 266,
      'CacheSetCount' => 263,
      'CacheDeleteCount' => 0,
      'CacheTagInvalidationCount' => 0,
      'CacheTagLookupQueryCount' => 28,
      'ScriptCount' => 4,
      'ScriptBytes' => 200400,
      'StylesheetCount' => 6,
      'StylesheetCount' => 5,
      'StylesheetBytes' => 79412,
    ];
    $this->assertMetrics($expected, $performance_data);