Google PageSpeed Insights Mobile Problems II
Автор: Aristotelis Biliouris
Просмотрено 2117,
Подписчики 2,
Размещенный 0
Dear Sirs,
I m comming back with the subject, how can i fix "Enable Compression" errors till the files are Incomedias? e.g.
- Compressing http://www.irishellas.com/res/x5engine.deferrable.js could save 194.3KiB (73% reduction).
- Compressing http://www.irishellas.com/pcss/index.css could save 144.7KiB (94% reduction).
- Compressing http://www.irishellas.com/res/jquery.js?12 could save 58.9KiB (64% reduction).
- Compressing http://www.irishellas.com/res/x5cartengine.js could save 39KiB (74% reduction).
- Compressing http://www.irishellas.com/style/menu.css could save 15KiB (86% reduction).
- Compressing http://www.irishellas.com/res/l10n.js could save 14.7KiB (65% reduction).
etc
My website is http://www.irishellas.com
Regards
Telis
Размещено
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
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
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
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: