활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
AEM version: 6.3.2.0
We are in the middle of making performance optimization on our site, as such we are deferring any and all JS scripts with `defer` attributes to prevent scripts from render-blocking. We are using contexthub so naturally, we see the following script:
<script src="/etc/cloudsettings/default/contexthub.kernel.js" type="text/javascript"></script>
We want to add the `defer` attribute to that script; looking at the JSP the renders this script: /libs/granite/contexthub/components/contexthub/contexthub.jsp we see that the only option is to overlay that JSP, which is not a great option especially if Adobe makes changes to that JSP in future releases.
Here are my questions:
Any help is greatly appreciated. Thank you!
조회 수
답글
좋아요 수
atyaf66 Did you manage to use async / defer the contexthub javascript ?
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
Response from Adobe
Loading contexthub script as non render blocking scripts is planned to be part of AEM 6.6 (GRANITE-20288)
@raghavc is there a service ticket for this feature that we can track it by in AEM release notes?
조회 수
답글
좋아요 수
It seems like only precompiling and caching was done as part of granite-20288, @raghavc is there another ticket for this issue?
조회 수
답글
좋아요 수