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

Avatar

Avatar
Validate 1
Level 2
JakeCham
Level 2

Likes

6 likes

Total Posts

76 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
JakeCham
Level 2

Likes

6 likes

Total Posts

76 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
JakeCham
Level 2

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
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
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)