Message Boards

MVC 7.3: Portlet waits for all resources although its data is already there

Erik Strauß, modified 3 Years ago.

MVC 7.3: Portlet waits for all resources although its data is already there

New Member Posts: 10 Join Date: 5/6/18 Recent Posts

Hello

I am using the latest version of Liferay 7.3 and developing classic MVC portlets with React in the frontend. So far everything works but the performance when loading leaves much to be desired. I noticed that the resources of my portlet (data from the backend, JS and CSS) are relatively small and load quickly. However, the portlet waits with the rendering, until ALL resources (theme, JS etc.) are loaded (around 8MB) and starts only then with the rendering. 

Am I right with my assumption?

Is there a way to make the portlet render immediately when its resources are loaded without waiting for everything else?

Thanks already in advance!