Skip to main content
added 64 characters in body
Source Link

Event delegationRemove loops by using Event delegation

Event delegation

Remove loops by using Event delegation

deleted 6 characters in body
Source Link

The code in the event handlers loops over all panel elements, yet those would only really update classes for at most only two elements would have updates to their class list. See the suggestion below about ways to eliminate the loops.

The style font-size: 20px; shouldis not be needed under .panel since the same rule is also specified on html, plus it gets overridden by more specific selectors.

The code in the event handlers loops over all panel elements, yet those would only really update classes for at most two elements. See the suggestion below about ways to eliminate the loops.

The style font-size: 20px; should not be needed under .panel since the same rule is also specified on html, plus it gets overridden by more specific selectors.

The code in the event handlers loops over all panel elements, yet at most only two elements would have updates to their class list. See the suggestion below about ways to eliminate the loops.

The style font-size: 20px; is not needed under .panel since the same rule is also specified on html, plus it gets overridden by more specific selectors.

added 217 characters in body
Source Link

Inefficient loops

The code in the event handlers loops over all panel elements, yet those would only really update classes for at most two elements. See the suggestion below about ways to eliminate the loops.

Excess CSS rules

Excess CSS rules

Inefficient loops

The code in the event handlers loops over all panel elements, yet those would only really update classes for at most two elements. See the suggestion below about ways to eliminate the loops.

Excess CSS rules

added 27 characters in body
Source Link
Loading
Rollback to Revision 6
Source Link
Loading
deleted 15 characters in body
Source Link
Loading
deleted 15 characters in body
Source Link
Loading
added 18 characters in body
Source Link
Loading
added 18 characters in body
Source Link
Loading
added 114 characters in body
Source Link
Loading
deleted 5 characters in body
Source Link
Loading
Source Link
Loading