js file in custom module's library is not attached when big pipe is running I have a custom module, filter_component, that provides a form. In the form I have:

$form['#attached']['library'][] = 'filter_component/filter-component';


In filter_component.libraries.yml I have:

filter-component:
  version: 1.x
  js:
    js/filter_component.js: {}
  dependencies:
    - core/jquery
    - core/jquery.once


filter_component.js begins with:

(function ($, Drupal) {
    Drupal.behaviors.filterComponent = {
        attach: function (context, settings) {
            $('.block-filter-component', context).once('filterComponent').each(function() {


Everything works fine, but only if big_pipe is disabled. When it is enabled, the code is not attached and the js file is not listed in page source or in browser tools as a source.
So it turns out that it was big pipe, but unrelated to my module. Elsewhere on the page a profile image is loaded to appear next to the user name, and if the user has none, a default image. It seems that if a 404 is returned (in this case because part of the oath did not yet exist to match the path supplied for the image), when big pipe goes to load it and gets the 404, downstream js is not loaded.