I'm working on a very styled Lightning Community (we're using Napili, but with a custom Theme, custom Layouts, custom CSS) and one thing which looks odd is the rendering order when you load a page.
- First thing to appear is the header and footer, with nothing in-between them
- Then the content components in-between appear, but without any data
- Then the AJAX responses come back, populating the content components.
Now, we can deal with the wait between 2 and 3 by using Stencils (https://www.lightningdesignsystem.com/guidelines/loading/). But, there doesn't seem to be anything we can do about the wait between 1 and 2. There's just an ugly snap between a page which is just header + footer, to something with components in-between.
I've tried hiding the footer component until it receives an
aura:doneRendering event. As I expected (since the docs say this isn't a good idea), I found that event was fired a whole load of times and - crucially - the the first firing was before the content components started to render so it didn't help at all.