Comments on: Trimming the Suite Bar + Ribbon on Modern SharePoint Sites in Office 365 https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/ Yet another SharePoint / Office 365 blog Sat, 19 Dec 2020 01:28:39 +0000 hourly 1 By: Tom Daly https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-14681 Sat, 19 Dec 2020 01:28:39 +0000 https://thomasdaly.net/?p=1581#comment-14681 In reply to John.

correct, I appreciate the comment. I agree the DOM is not an api and should be avoided if you want maintenance free environment. That is stated in the article. If you can’t live with ribbon and this is a blocker for you and you accept the risk then this article is for you. There are case where some organizations prefer to hide OOTB features to prevent uneducated users from clicking around too much or where they want a slightly more controlled environment.

Also there’s nothing that can be done about the flash of the ribbon initially. Any custom code always loads after any Microsoft code. Saying that any customization will only take effect once your code is loaded. In this case the ribbon is seen for a few moments then removed. It’s not a bullet proof solution in that sense.

]]>
By: John https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-14662 Thu, 17 Dec 2020 11:01:28 +0000 https://thomasdaly.net/?p=1581#comment-14662 this is not supported…

Important

The SharePoint page HTML DOM is not an API. You should avoid taking any dependencies on the page DOM structure or CSS styles, which are subject to change and potentially break your solutions. SharePoint Framework provides a rich API to customize the SharePoint experience in reliable ways and is the only supported means to interact with the SharePoint page HTML DOM.

in https://docs.microsoft.com/en-us/sharepoint/dev/spfx/enterprise-guidance

]]>
By: Tom Daly https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12861 Wed, 29 Apr 2020 14:54:01 +0000 https://thomasdaly.net/?p=1581#comment-12861 In reply to 0365.

you have some trade offs here due to when app customizers load and caching. css vs js . Just remember all Microsoft code loads first, then it allows app customizers / webparts.

the least amount of flicker is to hide the bar with CSS and then show it with JavaScript. the css will cache but there is always a flicker.

]]>
By: 0365 https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12860 Wed, 29 Apr 2020 14:43:07 +0000 https://thomasdaly.net/?p=1581#comment-12860 Seems like there is flickering before hiding.

]]>
By: Jake https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12585 Wed, 04 Mar 2020 11:54:28 +0000 https://thomasdaly.net/?p=1581#comment-12585 In reply to Tom Daly.

Thanks so much Tom, this works great. Your help is much appreciated. 🙂

]]>
By: Tom Daly https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12562 Thu, 27 Feb 2020 06:10:25 +0000 https://thomasdaly.net/?p=1581#comment-12562 In reply to Jake.

Just posted an update to the article w/ a link to a sample github project. let me know if you have any other questions!

]]>
By: Jake https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12556 Wed, 26 Feb 2020 09:06:01 +0000 https://thomasdaly.net/?p=1581#comment-12556 That would be great, thanks very much for the response Tom.

]]>
By: Tom Daly https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12549 Tue, 25 Feb 2020 06:46:12 +0000 https://thomasdaly.net/?p=1581#comment-12549 In reply to Jake.

Thanks for the feedback. The header is if you had a component you were creating in the application customizer. This was a snippet from my original POC. Tomorrow I’ll post a link to a sample github project with the complete solution.

]]>
By: Jake https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12520 Thu, 20 Feb 2020 09:36:39 +0000 https://thomasdaly.net/?p=1581#comment-12520 In reply to William.

Hi William,

I don’t know whether you will see this but I am in the same situation as yourself. I was wondering if you could perhaps elaborate on how you were able to resolve these errors?

Thanks

]]>
By: Jake https://thomasdaly.net/2018/05/14/trimming-the-suite-bar-ribbon-on-modern-sharepoint-sites-in-office-365/#comment-12511 Tue, 18 Feb 2020 12:30:29 +0000 https://thomasdaly.net/?p=1581#comment-12511 In reply to William.

Hi William,

I’m not sure whether you will see this comment but I’m in similar position to yourself, could you perhaps expand on what you had to do to resolve these errors? Any help would be greatly appreciated.

Thanks

]]>