Verified Commit cb18f9b4 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3521884 by nigelcunningham, nod_, smustgrave, catch: tableresponsive.js...

Issue #3521884 by nigelcunningham, nod_, smustgrave, catch: tableresponsive.js causes huge page load time for extensions page

(cherry picked from commit 27ad23e0)
parent ee35210d
Loading
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -46,12 +46,10 @@
    );

    // Attach a resize handler to the window.
    $(window)
      .on(
    $(window).on(
      'resize.tableresponsive',
      this.eventhandlerEvaluateColumnVisibility.bind(this),
      )
      .trigger('resize.tableresponsive');
    );
  }

  /**
@@ -69,6 +67,9 @@
          TableResponsive.tables.push(new TableResponsive(table));
        },
      );
      if (TableResponsive.tables.length) {
        $(window).trigger('resize.tableresponsive');
      }
    },
  };