This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Length of on-page code and minification not working

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Length of on-page code and minification not working Reply To: Length of on-page code and minification not working

#26131
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Thank you for the details.

It looks perfectly fine to me, there are a few extra white spaces (lines, tabs, spaces), but that is probably due to how the menu is rendered. It does not make any difference, browsers ignore the white space.
The HTML is not minified on purpose (and there is no option for it either), as usually that is being done via 3rd party caching – either by plugins, custom code or CDN (such as cloudflare). The CSS minification is also only minimal to prevent any compatibility issues with CDN or cache plugin asset minification processes.

Line numbers does not matter that much, the overall page size is important. In your case it is around 94000 characters, which is ~94Kb of HTML code, that is miniscule. Your server probably has gzip enabled as well, which makes it even smaller, I inputted the page source into a gzip calculator, and go this: https://i.imgur.com/znBa7R7.png
That is ~20Kb of HTML overall. I would not worry about that much. Even Facebook login page has more HTML code than that – and I bet that is optimized beyond everything.