Legacy Knowledge Base
Published Jul. 2, 2025

Google PageSpeed Insights (Mobile) results for a Liferay DXP site have a low score

Written By

Alfonso Crisci

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • After submitting your Liferay site to the Google PageSpeed Insights tool, a low score for Mobile will be returned, flagging issues on aggregated resources as:

    - Eliminate render-blocking resources
    - Remove unused CSS

Environment

  • Liferay DXP 7.0+

Resolution

  • Upgrade to the latest fix pack for your Liferay DXP version in order to get all the possible performance improvements Liferay released so far
  • Inline, aggregate, minify or eliminate resources added by a custom theme as much as possible: Dynamic including and importing Javascript files
  • Read this Liferay forum post with potential hints about the topic: Google PageSpeed
  • You may attempt this workaround at your discretion: Optimizing Your Website with the Google PageSpeed Dynamic Module for NGINX Plus

    Have in mind that:
  • All Liferay resources flagged as "Opportunities" by the Google PageSpeed Insights tool are necessary for the proper functioning of the portal and they cannot be removed or deferred
  • It will be at each developer's discretion to identify the best ways of improving the Mobile score

 

Did this article resolve your issue ?

Legacy Knowledge Base