diff --git a/core/modules/big_pipe/big_pipe.libraries.yml b/core/modules/big_pipe/big_pipe.libraries.yml index 8aa05075fdc17b1043fc8d0f94276d7d78ce6f60..f5774ef9750cdab066e7c459a25e8eda36a3fa2f 100644 --- a/core/modules/big_pipe/big_pipe.libraries.yml +++ b/core/modules/big_pipe/big_pipe.libraries.yml @@ -5,7 +5,6 @@ big_pipe: drupalSettings: bigPipePlaceholderIds: [] dependencies: - - core/jquery - core/once - core/drupal.ajax - core/drupalSettings diff --git a/core/modules/big_pipe/js/big_pipe.es6.js b/core/modules/big_pipe/js/big_pipe.es6.js index e035198d4fa80a0bfd56f0b8a5803fde6b2b2c0f..0792a793ee10a7a76473aee35023c46f71fd7cb7 100644 --- a/core/modules/big_pipe/js/big_pipe.es6.js +++ b/core/modules/big_pipe/js/big_pipe.es6.js @@ -3,7 +3,7 @@ * Renders BigPipe placeholders using Drupal's Ajax system. */ -(function ($, Drupal, drupalSettings) { +(function (Drupal, drupalSettings) { /** * Maps textContent of <script type="application/vnd.drupal-ajax"> to an AJAX response. * @@ -123,10 +123,10 @@ // If something goes wrong, make sure everything is cleaned up and has had a // chance to be processed with everything loaded. - $(window).on('load', () => { + window.addEventListener('load', () => { if (timeoutID) { clearTimeout(timeoutID); } bigPipeProcessDocument(document); }); -})(jQuery, Drupal, drupalSettings); +})(Drupal, drupalSettings); diff --git a/core/modules/big_pipe/js/big_pipe.js b/core/modules/big_pipe/js/big_pipe.js index 9d939243ef2731f3718881e646b72009eebb928e..712001c7c52ac83ac5994d48a38827d07180755f 100644 --- a/core/modules/big_pipe/js/big_pipe.js +++ b/core/modules/big_pipe/js/big_pipe.js @@ -5,7 +5,7 @@ * @preserve **/ -(function ($, Drupal, drupalSettings) { +(function (Drupal, drupalSettings) { function mapTextContentToAjaxResponse(content) { if (content === '') { return false; @@ -69,11 +69,11 @@ } bigPipeProcess(); - $(window).on('load', function () { + window.addEventListener('load', function () { if (timeoutID) { clearTimeout(timeoutID); } bigPipeProcessDocument(document); }); -})(jQuery, Drupal, drupalSettings); \ No newline at end of file +})(Drupal, drupalSettings); \ No newline at end of file