Exclude the granite/foundation libraries from the page loading in AEM | Community
Skip to main content
Umamaheswari_Yakkala
Community Advisor
Community Advisor
November 20, 2018
Solved

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

  • November 20, 2018
  • 7 replies
  • 2624 views

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.
Best answer by Uma1

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

7 replies

smacdonald2008
Level 10
November 20, 2018

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

Umamaheswari_Yakkala
Community Advisor
Community Advisor
November 20, 2018

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

smacdonald2008
Level 10
November 20, 2018

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

December 3, 2018

Any update

smacdonald2008
Level 10
December 3, 2018

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

Uma1Accepted solution
January 3, 2019

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

edubey
Level 10
January 4, 2019

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?