HTML minimization for a mobile site

We are developing a website for low-level mobile devices such as Blackberry OS version 5.X - 7.X. We use gzip compression methods. But when I tested BlackBerry 5.X support for gzip support, I found that they did not specify gzip support in their request, which turns the server into sending an uncompressed version.

So, at this point, can I look at html minified delivery? So that we can save some bandwidth with these versions (without gzip support).

This is a good idea and why, if not?

Also, is there any apache module for doing minimal (removing spaces, etc.) and without compression? or should I do this with php, buffering it and decrementing it with regex?

Please correct me if I am mistaken somewhere? Thanks for the help.

Update: I found this apache: pagespeed module , but could not test, since it is only for Cent OS / Fedora / Ubuntu and I am on WAMP

+4
source share
1 answer

You will need to check on your pages to see what happens.

This may not greatly affect the download speed and may actually increase the time that the server takes to process the request more than you saved during the download.

Many mobile devices, even older blackberries, actually have faster or faster connections than hard connections.

For example, this page: http://en.wikipedia.org/wiki/Comparison_of_server-side_JavaScript_solutions

is 47560 characters and then reduced to 44729. This is a 6% savings, but when it starts with just 48258 bytes, it only stores 2872 bytes or 22980 bits.

In other words, it saves only half a second even on a 56k modem. In any modern connection, this is insignificant.

+3
source

Source: https://habr.com/ru/post/1441447/


All Articles