How much of <cq:includeClientLib js="cq.jquery" /> is necessary for user-facing site?
Hi,
We are including the <cq:includeClientLib js="cq.jquery" /> ClientLibrary in the <head> of our website and (it appears) to be rendering as below in the HTML source:
<!-- in typical AEM setup, is jquery-ui required on Author and/or website? --> <link rel="stylesheet" href="/etc/clientlibs/granite/jquery-ui.css" type="text/css"><link rel="stylesheet" href="/etc/clientlibs/foundation/jquery-ui/themes/default.css" type="text/css"><!-- /granite/jquery.js is fine to include on website --> <script type="text/javascript" src="/etc/clientlibs/granite/jquery.js"></script><!-- in typical AEM setup, are any of the below files required in Author and/or website? --><script type="text/javascript" src="/etc/clientlibs/granite/utils.js"></script><script type="text/javascript" src="/etc/clientlibs/granite/jquery/granite.js"></script><script type="text/javascript" src="/etc/clientlibs/foundation/jquery.js"></script><script type="text/javascript" src="/etc/clientlibs/granite/jquery-ui.js"></script><script type="text/javascript" src="/etc/clientlibs/foundation/jquery-ui.js"></script>
I'm trying to work out if any/all of the above files are really necessary for a user-facing website, or if in fact most are just required for the Author side of AEM. I am hoping somebody can advise, even based on a typical AEM setup, whether the cq.jquery ClientLibrary is usually needed on a user-facing site.
Based on my investigations so far it appears that the vast majority of the files are not needed for our website (apart from /granite/jquery.js). I have noticed that for example, there is a /granite/jquery-ui.js file and a /foundation/jquery-ui.js file - I am wondering if both or any are needed or if they are supposed to only be used in the Author environment.
Hope the above makes sense - I know every website is different but any help/advice would be appreciated.
Thanks very much in advance
Theo