Legacy Knowledge Base
Published Sep. 10, 2025

Compressing (Gzipping) js_loader_modules file

Written By

Ankit Gupta

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

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

Issue

js_loader_modules files are taking more time to load which degrades the portal's performance. To identify whether js_loader_modules file is Gzipped or not:

  1. Open the portal in Chrome incognito window.
  2. Press F12 and switch to the Network tab.
  3. Hit http://localhost:8080.
  4. Search for js_loader_modules file.
  5. Inside Response Header, search for Content-Type:text/javascript;charset=UTF-8

Environment

  • Liferay DXP 7.0

Resolution

  1. Fix-pack de-55 or above is required.
  2. Add these properties in the portal-ext.properties:
    # If the user can unzip compressed HTTP content, the GZip filter will
        # zip up the HTTP content before sending it to the user. This will speed up
        # page rendering for users that are on dial up.
        #
        com.liferay.portal.servlet.filters.gzip.GZipFilter=true

     #
        # Enter a URL to automatically launch a browser to that URL when the portal
        # has fully initialized. Enter a blank URL to disable this feature.
        #
        browser.launcher.url=
  3. Delete the following folders:
    liferay/osgi/state
    liferay/work
    tomcat/work
    tomcat/temp
  4. Start the server.

Verifying whether the js_loader_modules file is Gzipped or not.

  • Open the portal in Chrome incognito window.
  • Press F12 and switch to the Network tab.
  • Navigate to http://localhost:8080.
  • Search for js_loader_modules file.
  • Inside Response Header, search for Content-Encoding: gzip
Did this article resolve your issue ?

Legacy Knowledge Base