Commit 0c577115 authored by catch's avatar catch
Browse files

Issue #3294720 by abramm, nod_, alexpott: The attachBehaviors() for document...

Issue #3294720 by abramm, nod_, alexpott: The attachBehaviors() for document is only called after Big Pipe chunks are processed
parent e13e5efe
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(function (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"]')) {