Commit a3c9d9d1 authored by catch's avatar catch
Browse files

Issue #3294720 by abramm: The attachBehaviors() for document is only called...

Issue #3294720 by abramm: The attachBehaviors() for document is only called after Big Pipe chunks are processed

(cherry picked from commit 798800c6)
parent 85191d00
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -93,6 +93,11 @@
      return false;
    }

    // Attach Drupal behaviors early, if possible.
    once('big-pipe-early-behaviors', 'body', context).forEach((el) => {
      Drupal.attachBehaviors(el);
    });

    once(
      'big-pipe',
      'script[data-big-pipe-replacement-for-placeholder-with-id]',
+3 −0
Original line number Diff line number Diff line
@@ -47,6 +47,9 @@
      return false;
    }

    once('big-pipe-early-behaviors', 'body', context).forEach(el => {
      Drupal.attachBehaviors(el);
    });
    once('big-pipe', 'script[data-big-pipe-replacement-for-placeholder-with-id]', context).forEach(bigPipeProcessPlaceholderReplacement);

    if (context.querySelector('script[data-big-pipe-event="stop"]')) {