Java Use-AP | Community
Skip to main content
August 30, 2016
Solved

Java Use-AP

  • August 30, 2016
  • 3 replies
  • 1444 views

Hi All,

I am using Java Use-API JavaScript Use-API,but page is performance is very slow.

Am not sure why is happening,Is I JavaScript Use-API slower than Java Use-AP?

or which one is better?

 

Thanks,

Nani.

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 kautuk_sahni

As correctly pointed by "Antonio",

Java USE-API is faster then JavaScript USE-API.

                
 Java Use-APIJavaScript Use-API
Pros
  • faster
  • can be inspected with a debugger
  • easy to unit-test
  • can be modified by front-end developers
  • is located within the component, keeping the view logic of a component close to it's corresponding template
Cons
  • cannot be modified by front-end developers
  • slower
  • no debugger (yet)
  • harder to unit-test

Example use:- 

Link 1:- https://docs.adobe.com/docs/en/htl/docs/use-api/java.html

Link 2:- https://helpx.adobe.com/experience-manager/using/first_htl_WCMUsePojo.html

 

I hope this will help you.

~kautuk

3 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
August 31, 2016

As correctly pointed by "Antonio",

Java USE-API is faster then JavaScript USE-API.

                
 Java Use-APIJavaScript Use-API
Pros
  • faster
  • can be inspected with a debugger
  • easy to unit-test
  • can be modified by front-end developers
  • is located within the component, keeping the view logic of a component close to it's corresponding template
Cons
  • cannot be modified by front-end developers
  • slower
  • no debugger (yet)
  • harder to unit-test

Example use:- 

Link 1:- https://docs.adobe.com/docs/en/htl/docs/use-api/java.html

Link 2:- https://helpx.adobe.com/experience-manager/using/first_htl_WCMUsePojo.html

 

I hope this will help you.

~kautuk

Kautuk Sahni
antoniom5495929
New Participant
August 30, 2016
        As you can see from doc the javascript is slower than java.https://docs.adobe.com/docs/en/htl/docs/use-api.html
smacdonald2008
New Participant
August 30, 2016

I recommend using a HTL component that implements WcmUsePojo.  See https://helpx.adobe.com/experience-manager/using/first_htl_WCMUsePojo.html. Hope this helps.