I have a Lightning Community and I'm using a custom HTML template to render my pages, inside this HTML template I have a v.body where my custom components are being displayed (the ones selected from the community builder).
So the weird thing I found out is that even when I code this:
<aura:if isTrue="{!false}">
{!v.body}
</aura:if>
The init handler of my custom components that go inside the "aura:if" is executed, although the components are not displayed on the DOM.
This is a big problem for me since I'm loading an external library on my HTML Template and rendering the {!v.body} afterScriptsLoaded, but my components keep crashing because my custom components use those libraries and the init handler keeps executing even when the isTrue statement is false. And I don't want to add my scripts on every single component inside my pages.
This seems to be a lightning bug, but I would like to be sure about this.