Message Boards

Performance Tuning in Liferay7.1

Darshan Patel, modified 4 Years ago.

Performance Tuning in Liferay7.1

New Member Posts: 8 Join Date: 8/12/19 Recent Posts
I have worked on project based on Liferay 7.1. I have been working to increase the performance of my site. I have analyzed my site on the GTMetrix site tuning online service, which is displaying the combo file documents in defer parsing issue in the page speed section. Can anybody say what do I have to do for that? GTMetrix suggested me to add defer and async tags to render the files (js, CSS) which is the part of single combo documents and also I'm not able to find the declaration of those files in a combo. Is there any way to deal with this situation? How can I increase the performance of my site?
thumbnail
David H Nebinger, modified 4 Years ago.

RE: Performance Tuning in Liferay7.1

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
That site doesn't know squat about Liferay...

And trust me, just adding "defer" and "async" to your tags isn't going to matter much at all.

You know your site better than some stupid online tool. Are you loading excessive JS libraries (i.e. using angular and react and XYZ on a page)? Are you loading your scripts, etc, correctly (i.e. using the @Component property headers vs embedded <script /> tags in JSPs)?

A tool cannot know what you have done in the site nor why you might have done it. Look at what you have done, what you have delivered. Only you can know that you're loading something you don't need to or that you're not doing things in the most efficient way. But a tool cannot fix a bad implementation or anything, and there's no magic in using additional tags, especially if you don't even know if you can defer or async them in the first place.
Darshan Patel, modified 4 Years ago.

RE: Performance Tuning in Liferay7.1

New Member Posts: 8 Join Date: 8/12/19 Recent Posts
Hi David, Thanks for your reply.

(Are you loading excessive JS libraries (i.e. using angular and react and XYZ on a page)? ) --> No, but we have used some plugins for our landing page banner slider.
(Are you loading your scripts, etc, correctly (i.e. using the @Component property headers vs embedded <script /> tags in JSPs)? ) --> Yes, we have used @Component property headers for loading portlet js. 

Well, I knew some of the js files which need to defer or async and I used it and upgrade the performance. 

We also test our site using the page speed insight site of Google. This site suggests us to eliminate render-blocking resources, here resources are only combo files which contain the javascript files for front end library, js_loader_modules, etc... there is also some CSS file from clay CSS from Liferay. The front end libraries and js_loader_modules and other combo files except for the portlet combo document may declared in <@liferay_util["include"] page=top_head_include /> theme portal_normal.ftl file. Can we modify it or remove the files which we don't use?

If we can find the declaration of these files in any way we can optimize the site performance.
thumbnail
David H Nebinger, modified 4 Years ago.

RE: Performance Tuning in Liferay7.1

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
Liferay themes in general score pretty poorly on page speed, there's not much you can do at a specific release level.

Liferay is working on increasing the page speed results on newer releases (I believe 7.2 scores better than 7.1, for example), but I believe the general consensus is that there is still a long ways to go.

Those are changes that are happening at a product level - I don't believe there is much you can do from an implementation perspective outside of thinning down what you are serving.

I might also suggest trying Varnish or a CDN to see if by offloading these resources whether you get a boost or not.