Expand my Community achievements bar.

Need a Clarity on Core component Container.js and utils.js

Avatar

Level 1

We have 10 years old legacy site which has been developed by AEM on premise and as part of one requirement we are planning to move all the css and js files into CF but we are not sure about core component container.js and utils.js, Just want to know what those mentioned js files will do in the site and if we remove from the page, what will happen to the existing site. Is it fine to remove or not?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6 Replies

Avatar

Level 6

Hi @AravindB1 ,

Can you please provide more details about files what are you asking for? I am wondering in file paths.

Avatar

Level 1

Hi,

adding file paths,

Do we really need this files?

/core/wcm/components/commons/site/clientlibs/container.js
/core/wcm/components/commons/site/clientlibs/utils.js

Avatar

Level 6

Most likely these files are parts of Core Components clientlib (core.wcm.components.commons.site.container). I think they are required if you use core component container on the site.

Avatar

Level 1

Thanks @konstantyn_diachenko , got the clarity about container.js but do you have any idea on utils.js ?

do you know why we should use this in the page?

Avatar

Level 6

Hi @AravindB1, I am sorry, unfortunately, it's very hard to say what is going on inside the file just by its name. 

You would need to check code inside of this file. 

Try to do the following steps:

1) do not migrate utils.js

2) check that container works as expected on author and on publisher and you don't see any related errors in the console

3) if you face any issue with container, will migrate this file as well 

Avatar

Administrator

@AravindB1 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni