Skip to main content
Umamaheswari_Yakkala
Community Advisor
Community Advisor
Nov 20, 2018 6:27 PM UTC
Solved

Exclude the granite/foundation libraries from the page loading in AEM

Hi Team,

  For some of the pages, we don't want to load the foundation and granite scripts on the page.

  How we can exclude those libraries form loading on AEM pages.

Any advice, please

Thanks

Uma

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Uma1Accepted solution
Level 1
Jan 3, 2019 6:33 PM UTC

I am able to do it by overriding the header.htm file.

7 replies

smacdonald2008
Level 10
Nov 20, 2018 6:28 PM UTC

I do not think this is a feature. Its not a great idea either as you can introduce instability with respect to page dependencies.

Translate
Umamaheswari_Yakkala
Community Advisor
Community Advisor
Nov 20, 2018 6:45 PM UTC

I agree but no option for a few pages. we are working on headless architecture, we did a simple test by removing the libraries from the dispatcher version. We are ok with that. Functionality looking good we just need to add the custom styles to the page and content that's all matter.

Any advice on how to exclude these libraries.

Thanks

Uma

Translate
smacdonald2008
Level 10
Nov 20, 2018 8:05 PM UTC

Not sure - as Adobe does not document this use case. I have asked some internal ppl for their thoughts here.

Translate
Level 1
Dec 3, 2018 8:57 PM UTC

Any update

Translate
smacdonald2008
Level 10
Dec 3, 2018 9:01 PM UTC

There is no instructions on this within Adobe. This does not seem like a practical use case.

Translate
Uma1Accepted solution
Level 1
Jan 3, 2019 6:33 PM UTC

I am able to do it by overriding the header.htm file.

Translate
edubey
Level 10
Jan 4, 2019 6:55 AM UTC

You can control the inclusion of a script if its not required for any functionality on page.

Which scripts you are seeing getting included on page and you dont need it?

Translate