<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue when adding Component clientlib as embed in clientlib base in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462384#M133452</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17511287"&gt;&lt;/LI-USER&gt;&amp;nbsp;, I understand you want to embed your custom clientlibs in clientlib-base, But by doing so you are unnecessarily increasing the load on base clientlibs and also it's not a good practice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, to include your clientlibs as a dependency into the base at &lt;EM&gt;&lt;STRONG&gt;&amp;lt;yourProject&amp;gt;/ui.frontend/clientlib.config.js&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 15:29:47 GMT</pubDate>
    <dc:creator>Aditya_Chabuku</dc:creator>
    <dc:date>2022-07-22T15:29:47Z</dc:date>
    <item>
      <title>Issue when adding Component clientlib as embed in clientlib base</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462338#M133426</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a clientlibrary(yp-poc.clientlibweather) for a component(suppose weather component) when I invoke clientlib in the component(suppose in weather.html)&lt;/P&gt;&lt;P&gt;&amp;lt;sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html"&amp;gt;&lt;BR /&gt;&amp;lt;sly data-sly-call="${clientlib.all @ categories='YP-POC.clientlibweather'}"&amp;gt;&lt;BR /&gt;&amp;lt;/sly&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the css and js are working fine but when I added &lt;STRONG&gt;this clientlib as embed property in clientlib-base&lt;/STRONG&gt; instead of calling clientlib inside component.html the &lt;STRONG&gt;css are disturbed and js isnt not all loading&lt;/STRONG&gt; Can anyone help me on this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vani.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 11:06:40 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462338#M133426</guid>
      <dc:creator>Vani1012</dc:creator>
      <dc:date>2022-07-22T11:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when adding Component clientlib as embed in clientlib base</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462359#M133439</link>
      <description>&lt;P&gt;The CSS and JS may get due to redundant data or multiple loading.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:05:05 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462359#M133439</guid>
      <dc:creator>sanketd27011989</dc:creator>
      <dc:date>2022-07-22T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when adding Component clientlib as embed in clientlib base</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462367#M133444</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17511287"&gt;&lt;/LI-USER&gt;&amp;nbsp;Can you try loading the Javascript and the css separately. Could be the possibility that you are calling the javascript in the header and the DOM elements are not initialized yet.&lt;/P&gt;&lt;P&gt;You can separately call the css and the javscript by the below syntax:&lt;/P&gt;&lt;PRE&gt;FOR CSS, INCLUDE IN HEADER 
&amp;lt;sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientLib.css @ categories='mysite'}" data-sly-unwrap/&amp;gt;

FOR JS, INCLUDE IN FOOTER
&amp;lt;sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientLib.js @ categories='mysite'}" data-sly-unwrap/&amp;gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:18:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462367#M133444</guid>
      <dc:creator>shaileshbassi</dc:creator>
      <dc:date>2022-07-22T13:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when adding Component clientlib as embed in clientlib base</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462369#M133446</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;LI-USER uid="9183494"&gt;&lt;/LI-USER&gt;&amp;nbsp;I don't want to call css and js in header and footer I just want to embed the components clientlibrary in clientlib-base&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:23:35 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462369#M133446</guid>
      <dc:creator>Vani1012</dc:creator>
      <dc:date>2022-07-22T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when adding Component clientlib as embed in clientlib base</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462384#M133452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17511287"&gt;&lt;/LI-USER&gt;&amp;nbsp;, I understand you want to embed your custom clientlibs in clientlib-base, But by doing so you are unnecessarily increasing the load on base clientlibs and also it's not a good practice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, to include your clientlibs as a dependency into the base at &lt;EM&gt;&lt;STRONG&gt;&amp;lt;yourProject&amp;gt;/ui.frontend/clientlib.config.js&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:29:47 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issue-when-adding-component-clientlib-as-embed-in-clientlib-base/m-p/462384#M133452</guid>
      <dc:creator>Aditya_Chabuku</dc:creator>
      <dc:date>2022-07-22T15:29:47Z</dc:date>
    </item>
  </channel>
</rss>

