- Messages
- 35
Almost every site I check has several odd configuration issues. By "odd configuration issues" I mean bad compression and
generally non-optimized content delivery. The calguns.net 504 issues are just one example, and they have ongoing problems
with invalid HTML pointing to non-existant objects. Many, many sites have similar issues.
Every copy of the Chrome browser now contains a good debugging tool to make spotting gross errors easy. The
view/development_tools tab has a network diagnostic feature. Just turn off cache and refresh the page. Every
page object will be analyzed in detail as it is downloaded. The size, timing, compression, sequence and relation to
every other object on the page will be displayed. It take about 3 seconds to set up such an analysis and start it running.
As it is running, set the sort to put the largest object (in delivered bytes) to be shown first. This generates a Pareto
of problems: the biggest objects are the slowest delivered. Simply optimizing the top 20 objects in this list is almost
always a sure-fire way to reduce time-to-usability of the delivered page. Is it work cutting the page load time in half?
Almost every user will say "YES!".
First thing to check is use of gzip. This compression format was great in 1995, but is obsolete. Any page containing
gzip should be considered invalid. There is lots of gzip here. OK, what about the use of brotli and zstd? Generally
much better, but not always. Each of these compression tools is configurable, and can be configured to be worse than
default gzip. Is each object, and in particular each static object, compressed with the maximum compression offered
by zstd or brotli? Who knows?!? Nobody checks... because nobody cares. In virtually all cases zstd is much faster
at compression, in addition to being much better at compression, that even the best gzip or best brotli. In all cases
it is faster to decompress -- which needs to be in order for humans to read the HTML. Is this site actually optimizing
and using the *right* zstd compression? Almost certainly not.
What about WOFF2? There are giant font packages here and they are delivered with WOFF2. What is going on?
Do we know if the big fat fonts delivered are actually used on the page, or are they completely useless? Unknown,
but the likelihood that the WOFF2 package contents are correct is low, if the use of gzip is to be used as a guage.
What about the compression in WOFF2? Sure, WOFF2 *can* be compressed, but compression is not required! Is
it here? If it is compressed, is it compressed with the gzip engine (as is permitted)? If so, why, and what compression
configuration is used? Perhaps it is compressed with the brotli engine? OK, if so, is it *properly* compressed with
brotli? Look up the brotli_params structure in the compression engine... because you cannot check after the
compression is done. The default compression is wrong for static WOFF2 objects.
All this is just check-marks in some GUI somewhere to define the contents in the delivered HTML stream. Is it
possible to just turn on modern compression here at caguns.net? All that I am talking about was news more than
5 years ago, but still sites like this are unable to get the basics right. The California 2A community wants modern
tools.
generally non-optimized content delivery. The calguns.net 504 issues are just one example, and they have ongoing problems
with invalid HTML pointing to non-existant objects. Many, many sites have similar issues.
Every copy of the Chrome browser now contains a good debugging tool to make spotting gross errors easy. The
view/development_tools tab has a network diagnostic feature. Just turn off cache and refresh the page. Every
page object will be analyzed in detail as it is downloaded. The size, timing, compression, sequence and relation to
every other object on the page will be displayed. It take about 3 seconds to set up such an analysis and start it running.
As it is running, set the sort to put the largest object (in delivered bytes) to be shown first. This generates a Pareto
of problems: the biggest objects are the slowest delivered. Simply optimizing the top 20 objects in this list is almost
always a sure-fire way to reduce time-to-usability of the delivered page. Is it work cutting the page load time in half?
Almost every user will say "YES!".
First thing to check is use of gzip. This compression format was great in 1995, but is obsolete. Any page containing
gzip should be considered invalid. There is lots of gzip here. OK, what about the use of brotli and zstd? Generally
much better, but not always. Each of these compression tools is configurable, and can be configured to be worse than
default gzip. Is each object, and in particular each static object, compressed with the maximum compression offered
by zstd or brotli? Who knows?!? Nobody checks... because nobody cares. In virtually all cases zstd is much faster
at compression, in addition to being much better at compression, that even the best gzip or best brotli. In all cases
it is faster to decompress -- which needs to be in order for humans to read the HTML. Is this site actually optimizing
and using the *right* zstd compression? Almost certainly not.
What about WOFF2? There are giant font packages here and they are delivered with WOFF2. What is going on?
Do we know if the big fat fonts delivered are actually used on the page, or are they completely useless? Unknown,
but the likelihood that the WOFF2 package contents are correct is low, if the use of gzip is to be used as a guage.
What about the compression in WOFF2? Sure, WOFF2 *can* be compressed, but compression is not required! Is
it here? If it is compressed, is it compressed with the gzip engine (as is permitted)? If so, why, and what compression
configuration is used? Perhaps it is compressed with the brotli engine? OK, if so, is it *properly* compressed with
brotli? Look up the brotli_params structure in the compression engine... because you cannot check after the
compression is done. The default compression is wrong for static WOFF2 objects.
All this is just check-marks in some GUI somewhere to define the contents in the delivered HTML stream. Is it
possible to just turn on modern compression here at caguns.net? All that I am talking about was news more than
5 years ago, but still sites like this are unable to get the basics right. The California 2A community wants modern
tools.
