Defer/async -> /etc.clientlibs/clientlibs/granite/jquery.min.js?v=aemv and /etc.clientlibs/clientlibs/granite/utils.min.js?v=aemv

Avatar

Avatar

JakeCham

Avatar

JakeCham

JakeCham

15-03-2021

Hi Team,

 

I want to defer below two granite clientlibs paths. Paths are 

1) /etc.clientlibs/clientlibs/granite/jquery.min.js?v=aemv

2) /etc.clientlibs/clientlibs/granite/utils.min.js?v=aemv.

How These two js files are getting embedded into page source ? Apparently they are getting embedded from /libs/clientlibs/granite/jquery and /libs/clientlibs/granite/utils. Any suggestions how I can async or defer those URLs. 

 

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Anudeep_Garnepudi

MVP

Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
MVP

15-03-2021

@JakeCham 

Any specific reason to defer those clientlibs?

  • Those are framework libraries and it is not at all suggested to defer those libs. If these frameworks are deferred then all the dependent libs should also defer, otherwise will break all dependent libs.
  • There are no OOTB way to add defer or async.
  • Custom implementation https://github.com/nateyolles/aem-clientlib-async
  • Suggested not to async or defer OOTB or any framework libraries

Answers (0)