Extensions: Application Customizer weird behaviour with header color and positioning
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Observed Behavior
I was testing out the application customizer sample with the header and footer. I have packaged the solution and uploaded it to the app catalog. Once deployed on a site, I noticed the following behaviors:
One modern site pages
On modern site pages only the header is loaded. Not the footer.

When you check the browser console, I see the following message:

Two questions about this:
- Will all pages get all the placeholders?
- The header should have been green instead of blue. Like when I would open a document library:

Recycle bin Once I added the app customizer to the site and went to the recycle bin, I see the following (this happens only 1/3 times I refresh the page):
Steps to Reproduce
Following the getting started documentation about extensions and publish it to your environment.
Hello @estruyf . I can answer some of the questions: 1 - No, all pages won't necessarily have all the placeholders. For example in the future I could see a placeholder like "BelowLeftNav" and a page that didn't have left navigation. In that case, the BelowLeftNav placeholder wouldn't return. Your code should be robust. One current gap that we are working on is how to deal with the fact that the available placeholders could change when doing an inner navigate. Ie, Page1 has no left nav (it's a homepage say), but page 2 does (it's a detail page). 2 - Sounds like a bug where the pages application isn't getting the right theme data. @srideshpande - can you log that one? 3 - For the recycle bin, is the issue that occasionally the placeholder doesn't show up when you go to the recycle bin? If that is the case, can you look at the debug console and see if there is anything there that might indicate what's going on?
Thanks @patmill for the info.
- Good to know, but as the sample now contains a header and footer, maybe it should be better to point it out or make the sample code more future-proof.
- OK
- Maybe the screenshot is not so good to see what is happening. It is about the whitespace above the suite bar. Apparently, it is coming from the
#SPPageChromeelement.
I did some more investigation and it seems that sometimes the code runs before the placeholders are available on the page. Here is the error message I get when I see this kind of behavior:
You can see in the screenshot that no placeholders are available. So the code gets binded / executed too early it seems.
We closed this issue as it had not activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related on the recommended location. We do apologize any inconveniences this might cause. Please do remember that issues in the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues