Why this matters
Event listeners that are not removed properly can cause memory leaks. Always remove listeners when they are no longer needed to avoid unnecessary resource consumption.
Ensure that event listeners are removed when no longer needed. Not doing so can lead to memory leaks and unnecessary resource consumption.
Event listeners that are not removed properly can cause memory leaks. Always remove listeners when they are no longer needed to avoid unnecessary resource consumption.
Side-by-side examples engineers can pattern-match during review.
// (no example provided)// (no example provided)From the same buckets as this rule.
All static JS/CSS/font/image files MUST use content-hashed filenames (e.g., app.9c1a7b.js) and be served with "Cache-Control: public, max-age=31536000, immutable". HTML and other non-fingerprinted documents MUST be served with "Cache-Control: no-cache" (or equivalent) to enable conditional revalidation.