Score:0

How do I prevent a block from being loaded via Big Pipe

cn flag

I have a view block, nothing crazy, just a couple fields. I want to present it as a carousel. Everything worked fine, until suddenly Drupal decided to start loading the block asynchronously with Big Pipe. Since I have js library attached to the block, all DOMContentLoaded functions in that js stopped working. How can I prevent it? I need the carousel to work across multiple blocks and I need a reliable solution for blocks that are both loaded with Big Pipe and blocks that aren't as well. Preferably I would like to be able to disable Big Pipe aggregation for specific blocks.

4uk4 avatar
cn flag
You could attach js in Drupal Behaviors so that it works with AJAX. Otherwise this is a duplicate of this question https://drupal.stackexchange.com/questions/305479/can-bigpipe-exclude-certain-blocks.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.