Commit 500af4bd authored by catch's avatar catch
Browse files

Issue #3204273 by Wim Leers, nod_, seanmacgillivray: Remove jQuery dependency from BigPipe

parent 3ee0b0b7
Loading
Loading
Loading
Loading
+0 −1
Changes for core/modules/big_pipe/big_pipe.libraries.yml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@ big_pipe:
  drupalSettings:
    bigPipePlaceholderIds: []
  dependencies:
    - core/jquery
    - core/once
    - core/drupal.ajax
    - core/drupalSettings
+3 −3
Changes for core/modules/big_pipe/js/big_pipe.es6.js: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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);
+3 −3
Changes for core/modules/big_pipe/js/big_pipe.js: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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