Answer the question
In order to leave comments, you need to log in
Site loading speed, how to configure gzip compression?
Hello!
Please tell me how to speed up the loading of the site on the VPS server.
I set everything up in principle, on mobile 99/100 according to Google PageSpeed Insights,
on the desktop 98/100. The problem is in three scripts, there is no compression.
Compression on ngins is configured, for all scripts it gives gzip compression, except for 3 pieces.
What could be the problem?
I am attaching screenshots, the site is here
.
This note is for 3 scripts on each page.
Thank you all in advance.
Answer the question
In order to leave comments, you need to log in
jquery.lazyloadxt.extend.js has
a few extra spaces here due to formatting.
type if you remove the excess, it will be a couple of bytes shorter.
You don't have to be a fan of this bullshit.
I see you put all the css in the body of the page.
For a site with a viewing depth of 1-2, yes, it makes sense, but for the rest it will be worse.
Issue resolved!
Hello! Thanks Oleg!
I'm not a fan at all, it is necessary for an example to show that this is possible, as well as on a specific template and with specific plugins. There were no problems with viewing depth.
The solution was proposed by the provider, Majordomo! Once again referring to the fact that consultations on setting up a server are available only when paying increased rates! But well done guys! This is not the first time they help out with configs. I recommend this provider. Here is a screenshot of the correspondence and a solution to the problem:
Returning to the solution of the question, the answer is simple, it was necessary to add a number of parameters to the gzip compression engine settings, in particular, as I understood from the letter, precisely by the name of the compressed files gzip_types, and increase gzip_min_length.
The guys from Majordomo ’s technical support are great, they didn’t just give an answer in a letter, but even corrected the configs, not every provider provides such support even on a paid basis, so I recommend it!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question