Foren

Web content render weight

thumbnail
Anil T, geändert vor 6 Jahren.

Web content render weight

Expert Beiträge: 313 Beitrittsdatum: 14.01.12 Neueste Beiträge
Hello,

We have two web content and two custom portlets in our site. We are planning to load one of the web content loading after all three portlets loading. Is there any way to get this implementation? I have see web content portlet configurations options but i don't see any option which provide me the solution.

If you know please update here.

Thanks,
Anil T
thumbnail
Jorge Díaz, geändert vor 6 Jahren.

RE: Web content render weight

Liferay Master Beiträge: 753 Beitrittsdatum: 09.01.14 Neueste Beiträge
I don't think you can do it without adding some custom development.

Perhaps you can use allPortletsReady event in javascript, see: https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/6-2/understanding-your-themes-javascript-callbacks-in-main-js

The idea is to hide webcontent using css and change to visible in JavaScript using that allPortletsReady event.
thumbnail
Anil T, geändert vor 6 Jahren.

RE: Web content render weight

Expert Beiträge: 313 Beitrittsdatum: 14.01.12 Neueste Beiträge
Thanks Jorge. This can also be used as one implementation plan.

I have this web content portlet which is loading dynamically using the $theme.runtime method. Can we load these velocity statments using the above javascript snippet?

Thanks,
Anil T