Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Hi Team,
I have scenario for clientlibs loaded twice on the page
On Template Level :
Example :
categories = [Category1]
dependencies = [category2,category3]
On Component :
categories = [Category4]
dependencies = [category2]
While on page load, I see dependencies are loaded twice using domain abc.com but loaded only once on author and publisher instance which is really strange.
Thanks
Vistas
Respuestas
Total de me gusta
Can you clarify when this happens ? When opening the page ?
Vistas
Respuestas
Total de me gusta
Yes on page opening .
When I checked view page source the clientlibs are loaded twice on the page .
Vistas
Respuestas
Total de me gusta
Looks like something at dispatcher level might be causing the issue. Can you change the dispatcher log level to DEBUG and try to load the page?
It should show you all the requests and what might be causing the extra request.
Vistas
Respuestas
Total de me gusta
I looked at the dispatcher log and found every request is made to the render and file getting cached under htdocs successfully.
I don't see any request which monitor the duplicacy of the file being request and not to serve.
Even no error in the log file
Vistas
Respuestas
Total de me gusta
Hello,
As category 2 is already loaded in the page, can you not remove the dependancy of category 2 from component's clientlib and see how it goes.
Vistas
Respuestas
Total de me gusta
Hey,
I already tried , but the issue is the variables which are used getting undefined error in the JS. As the JS loaded at the bottom of the page and the dependency is not able to find the variable above.
Thanks
Vistas
Respuestas
Total de me gusta
Hi Sumit,
Yes,Ideally it should be loaded once on dispatcher as well.
There is some issue at the dispatcher only.Could you just clear the dispatcher cache of that page and give it another try?
Regards,
Arpit Varshney
Vistas
Respuestas
Total de me gusta
Hi,
Its not the dispatcher which is caching, I have clear the cache and still its not working.
Do you know think ,if any xyz component on parsys contains clientlibs and same clientlibs present at the template also can make the issue.?
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas