Fixing Performance Warnings
A few common performance anti-patterns in code prompt the framework to log warning messages to the browser console. Fix the warning messages to speed up your components!
The warnings display in the browser console only if you enabled debug mode.
-
<aura:if> —Clean Unrendered Body —Clean Unrendered Body
This warning occurs when you change the
isTrueattribute of an<aura:if>tag fromtruetofalsein the same rendering cycle. The unrendered body of the<aura:if>must be destroyed, which is avoidable work for the framework that slows down rendering time. -
<aura:iteration> —Multiple Items Set —Multiple Items Set
This warning occurs when you set the
itemsattribute of an<aura:iteration>tag multiple times in the same rendering cycle.
See Also