Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Java Use-AP

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

3 Replies

Avatar

Correct answer by
Administrator

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