WebSite X5Help Center

 
Aristotelis Biliouris
Aristotelis Biliouris
User

Google PageSpeed Insights Mobile Problems II  en

Author: Aristotelis Biliouris
Visited 2143, Followers 2, Shared 0  

Dear Sirs,

I m comming back with the subject, how can i fix "Enable Compression" errors till the files are Incomedias? e.g.

etc

My website is http://www.irishellas.com

Regards

Telis

Posted on the
4 ANSWERS
Paul M.
Paul M.
Moderator

Hello Aristotelis B.,

Yes, these files were produced by Incomedia, but once they are on your server you can do what you like with them.

If you use this tool you will see that gzip compression is not enabled for those particular files:

http://checkgzipcompression.com/

So the solution would be to either contact your webhost to ask them to rectify this for you, or alternatively make the necessary changes to the server yourself, if you have access.

Kind regards,

Paul

Read more
Posted on the from Paul M.
Vedat G.
Vedat G.
User

Hi,

How do you enable gzip for js files in addition? All the content on my site is gzip enabled, but I am getting the same error.

Best

Vedat

https://www.gurtan.com

Read more
Posted on the from Vedat G.
Paul M.
Paul M.
Moderator

Hello Vedat,

Assuming you are using an Apache server then you can either use mod_deflate or mod_gzip in conjunction with your .htaccess file:

If using mod_deflate then the addition to your .htaccess file would be something like this:

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/javascript
</IfModule>

If using mod_gzip then similar to this:

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(css|js|php|pl)$
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

Of course these modules must first be present and loaded in Apache.  If they are not (and you are using shared hosting) then these methods cannot be used.

Kind regards,

Paul

Read more
Posted on the from Paul M.
Vedat G.
Vedat G.
User

Hi Paul,

Thanks, actually my compression was ok. I have the deflate mode, I am getting the followwing errors.

I have the browser caching as well. And have expiry for one week.

Best

Vedat

https://www.gurtan.com

Your page has 3 blocking script resources and 5 blocking CSS resources. This causes a delay in rendering your page.None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.Remove render-blocking [removed]

Optimize CSS Delivery of the following:

---------

Leverage browser cachingSetting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.Leverage browser caching for the following cacheable resources:

Read more
Posted on the from Vedat G.