How many times do css and js load in a page? | Adobe Higher Education
Skip to main content
October 16, 2015
Risolto

How many times do css and js load in a page?

  • October 16, 2015
  • 1 risposta
  • 649 visualizzazioni

I have css and js files in clientLibs folder, and also I have created a component. My question is if I drag the same component three time on my website, how many times will the css and js be applied.

Questo argomento è stato chiuso alle risposte.
Migliore risposta di Mshaji

With client lib feature we can categorize every JS and CSS file as a library and can include/import them in individual component or template .  If on a page there are multiple component that needs the same library then CQ will make sure that the library is loaded only once.

1 risposta

MshajiCommunity AdvisorRisposta
Community Advisor
October 16, 2015

With client lib feature we can categorize every JS and CSS file as a library and can include/import them in individual component or template .  If on a page there are multiple component that needs the same library then CQ will make sure that the library is loaded only once.