Expand my Community achievements bar.

SOLVED

miminal include library for cq.http.get

Avatar

Level 2

For  publish instance for validating captcha on server side I had to add CQ.HTTP.get method .But to this on publish instance I had to add <cq:includeClientlib categories="cq.widgets"/> .But the problem I see with this is in already exisitng pages this adds all the unused components with grey box .That is not a good thing on production pages to visitors.

 

So wanted to know as how this could be avoided and what minimal client lib code i could use to achieve it

 

Thanks,

Srinivas

1 Accepted Solution

Avatar

Correct answer by
Level 10

<cq:includeClientLib js="cq.shared"/>

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

<cq:includeClientLib js="cq.shared"/>