Using Backend Javascipt Use-API in AEM HTL
I need to create a component that uses the tag title (jcr:title) set in ContentFragment. The tag title cannot be obtained by the core component, so I need to use the TagManagerAPI, in which case I need to write the code in either Java Use-API or Javasciprt Use-API.
I prefer to use Javacript Use-API because I have more experience with Javascript and it requires less code to write. However, Adobe's documentation shows Java Use-API, but Javascript Use-API is only mentioned on some of the pages.
Java Use-API
https://experienceleague.adobe.com/docs/experience-manager-htl/content/java-use-api.html?lang=en
Javascript Use-API
https://experienceleague.adobe.com/docs/experience-manager-htl/content/getting-started.html?lang=en#passing-data-to-the-client
The differences between the APIs are described below, but I wonder if using the Javascript Use-API is not recommended because it is slow and difficult to unit test. I would like to know if there are any problems in using it.
