# Mautic .js files serving slow - can they be gzip compressed

**URL:** <https://forum.mautic.org/t/mautic-js-files-serving-slow-can-they-be-gzip-compressed/25528>\
**Category:** Product Support\
**Created:** [September 28, 2022, 6:48am UTC](https://forum.mautic.org/t/mautic-js-files-serving-slow-can-they-be-gzip-compressed/25528 "2022-09-28T06:48:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 28, 2022, 6:48am UTC](https://forum.mautic.org/t/mautic-js-files-serving-slow-can-they-be-gzip-compressed/25528/1 "2022-09-28T06:48:35Z")

</div>

Hi

I am not really sure how to even ask the question in the correct way, we have a client that says that the load time on Mautu js files is slowing the site down, specifically : Mautic-form.js  
/form/geneerate.js?id=whatever  
css/modal.min.css

Is there a way to have these passed in gzip encoding ? or something like that ?

Or is this a server configuration and if so would anyone know how to set this up with an nginx server

Thanks

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 29, 2022, 10:41am UTC](https://forum.mautic.org/t/mautic-js-files-serving-slow-can-they-be-gzip-compressed/25528/2 "2022-09-29T10:41:03Z")

</div>

For anyone that is interested, this is a server side issue. I was able to solve it inside nginx, do the following:

1. cd /etc/nginx
2. cp nginx.conf nginx.conf.orig
3. From line 46 where the gzip section is - uncomment all the lines and also add  
gzip\_min\_length 256;
4. Restart nginx

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [September 30, 2022, 10:41pm UTC](https://forum.mautic.org/t/mautic-js-files-serving-slow-can-they-be-gzip-compressed/25528/3 "2022-09-30T22:41:14Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
