Commit e3a2b4db authored by Ben Mullins's avatar Ben Mullins
Browse files

Issue #3238915 by Bhanu951, hooroomoo, bnjmnm: Refactor (if feasible) uses of...

Issue #3238915 by Bhanu951, hooroomoo, bnjmnm: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
parent d05e452f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@
    "jquery/no-parse-html": 0,
    "jquery/no-prop": 0,
    "jquery/no-proxy": 0,
    "jquery/no-ready": 0,
    "jquery/no-ready": 2,
    "jquery/no-serialize": 0,
    "jquery/no-show": 0,
    "jquery/no-size": 2,
+3 −3
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@
 * Statistics functionality.
 */

(function ($, Drupal, drupalSettings) {
  $(document).ready(() => {
(function ($, drupalSettings) {
  setTimeout(() => {
    $.ajax({
      type: 'POST',
      cache: false,
@@ -12,4 +12,4 @@
      data: drupalSettings.statistics.data,
    });
  });
})(jQuery, Drupal, drupalSettings);
})(jQuery, drupalSettings);