js and css not rendering | Community
Skip to main content
New Participant
July 26, 2021
Solved

js and css not rendering

  • July 26, 2021
  • 2 replies
  • 945 views

For an AEM component when I override a core component, its css and js does not render.
Can someone suggest me the way to get css and js when overriding a core component.

 

Thanks

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 Bhuwan_B

@neelanshb1 Please refer to the below URL:

http://www.aemcq5tutorials.com/tutorials/proxy-component-in-aem/

 

2 replies

BrianKasingli
New Participant
July 26, 2021

Hi Nelan,

When you are overlaying a component from the core component library, you will still need to "embed" the client libraries that are associated with each of the overlayed core components to get the CSS and JS working as expected. 

To overwrite the CSS and JS, the standard way is to a new client library for your new overlayed component. Make sure the new client library embeds the core component's client library category(categories).

I hope this helps,

Brian 

Bhuwan_B
Bhuwan_BAccepted solution
New Participant
July 26, 2021