Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2universalStack: javascript
cleanuphtmlperformance
Strip ad/tracking config and meta that the feature doesn't need
Don't carry over ad/tracking meta tags and config objects into a stripped-down view (like a preview) where they serve no purpose.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codehtml
| 1 | <!-- preview template still includes ad slots, tracking pixels, window.*Configuration --> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codehtml
| 1 | <!-- preview keeps only what it needs to render the article --> |
Explanation (EN)
Objašnjenje (HR)