Issue #3294720 by abramm: The attachBehaviors() for document is only called after Big Pipe chunks are processed
parent
bfeff83776
commit
798800c653
|
@ -93,6 +93,11 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Attach Drupal behaviors early, if possible.
|
||||||
|
once('big-pipe-early-behaviors', 'body', context).forEach((el) => {
|
||||||
|
Drupal.attachBehaviors(el);
|
||||||
|
});
|
||||||
|
|
||||||
once(
|
once(
|
||||||
'big-pipe',
|
'big-pipe',
|
||||||
'script[data-big-pipe-replacement-for-placeholder-with-id]',
|
'script[data-big-pipe-replacement-for-placeholder-with-id]',
|
||||||
|
|
|
@ -47,6 +47,9 @@
|
||||||
return false;
|
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);
|
once('big-pipe', 'script[data-big-pipe-replacement-for-placeholder-with-id]', context).forEach(bigPipeProcessPlaceholderReplacement);
|
||||||
|
|
||||||
if (context.querySelector('script[data-big-pipe-event="stop"]')) {
|
if (context.querySelector('script[data-big-pipe-event="stop"]')) {
|
||||||
|
|
Loading…
Reference in New Issue