Performance Tuning in Liferay7.1Performance Tuning in Liferay7.1https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1147371512024-03-29T12:24:00Z2024-03-29T12:24:00ZRE: Performance Tuning in Liferay7.1David H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1147436472019-08-13T05:19:13Z2019-08-13T05:19:13ZLiferay themes in general score pretty poorly on page speed, there's not much you can do at a specific release level.<br /><br />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.<br /><br />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.<br /><br />I might also suggest trying Varnish or a CDN to see if by offloading these resources whether you get a boost or not.David H Nebinger2019-08-13T05:19:13ZRE: Performance Tuning in Liferay7.1Darshan Patelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1147428162019-08-13T05:04:12Z2019-08-13T05:04:12ZHi David, Thanks for your reply.<br /><br />(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.<br />(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. <br /><br />Well, I knew some of the js files which need to defer or async and I used it and upgrade the performance. <br /><br />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? <br /><br />If we can find the declaration of these files in any way we can optimize the site performance.Darshan Patel2019-08-13T05:04:12ZRE: Performance Tuning in Liferay7.1David H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1147402072019-08-12T16:41:21Z2019-08-12T16:41:21ZThat site doesn't know squat about Liferay...<br /><br />And trust me, just adding "defer" and "async" to your tags isn't going to matter much at all.<br /><br />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)?<br /><br />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.David H Nebinger2019-08-12T16:41:21ZPerformance Tuning in Liferay7.1Darshan Patelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1147371502019-08-12T15:07:01Z2019-08-12T15:07:01ZI 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 co