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