Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

246
Visualizações
How to remove render blocking CSS resources in AEM?

One of the solutions to solve the render blocking CSS resources in HTML is to preload the CSS then load the CSS once the file is loaded:

<link rel="preload" href="main.css" as="style" onload="this.rel='stylesheet'"/>

Any idea about how to convert the HTML code to the AEM implementation?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There's nothing to convert, you just need to output that particular markup on a page.

There are many ways to write page-level components and implementations often have at least several of those components in use. You would have to tweak the code responsible for linking to client side libraries. I believe this amount of flexibility is not built into the mechanisms AEM uses to include those. You'd probably have to replace the standard JSP tags or HTL templates with a bit of custom implementation, depending on how your page-level components have been written.

You should identify the page-level components behind each of the templates used on your site and adjust them. If you have a greenfield project, the job's easier as you can start off with this approach.

See https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-4-clientlib-javascript-with-async-and-defer-css-with/m-p/323641 for a few suggestions that might be relevant.

Your job could be easier if you're using AEM Core Components, which aren't part of the product, but an open-source project managed by Adobe and the AEM community. There appears to be some extra functionality around this than in vanilla AEM. I haven't used any of those features though and I'm not sure how close to production-readiness they are.

This issue mentions preloading scripts, which implies some degree of support https://github.com/adobe/aem-core-wcm-components/issues/1823

Here's the documentation for the latest iteration of the Page component https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wcm/components/page/v3/page/README.md

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda