A Chrome browser extension that estimates the HTTP compression level of the page.

Latest Version

Version
0.0.1
Update
March 17, 2022
Size
520KiB
Developer
Category
Users
98
Rating
1 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
WebRequest
WebNavigation
See more

Estimate compression level Extension

Background

Compression is a core feature of HTTP that improves transfer speed, cache bandwidth utilization and cache utilization.

Lossless data compression algorithms development led to the LZW algorithm (1984), used by the compress application (1985), and then the PKZIP application (1991) with its DEFLATE algorithm which was then used in the gzip format (1992). The zlib library (1995) became a de facto standard compression library for gzip data.

HTTP/1.1 in 1999 (RFC 2616) added support for gzip, compress and deflate compression as content encodings. gzip compression quickly became the default as it compressed better than compress, which used the patented LZW algorithm, and as Microsoft incorrectly implemented deflate as a broken raw deflate stream instead of the correct deflate stream inside a zlib format wrapper.

Compression algorithms generally define a file format and how to decompress it. This allows the user to pick an appropriate compression level: either fast compression, which compresses quickly, but doesn't compress very small or instead best compression, which compresses slowly but generates a smaller output.

With gzip and zlib these levels range from 1 (fast) to 9 (best), with a default of 6.

When you browse to a page with this extension and the content is compressed with gzip, a little badge is shown with the estimated compression level.

If the compression was achieved with a gzip compressor other than zlib, a fractional estimate of zlib compression level is shown.

How does it work?

The chrome extension notes the Content-Length of the page as it is loaded, then fetches the page again, tries to compress it with a variety of levels and then displays the result.

This uses more network and CPU. Use sparingly.

TODO

Some websites use the newer Brotli compression algorithm instead of gzip. This extension does not support Brotli yet.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Estimate compression level", "version": "0.0.1", "action": { "default_icon": { "128": "images/128.png" } }, "description": "A Chrome browser extension that estimates the HTTP compression level of the page.", "icons": { "128": "images/128.png" }, "background": { "service_worker": "background.js", "type": "module" }, "host_permissions": ["http://*/*", "https://*/*"], "permissions": ["webRequest", "webNavigation"]}
Read more

Similar Extensions

icon

PageAccel Extension · Accessibility 98 7 ★ 297KiB

icon

MyCache Extension · Productivity 98 15 ★ 5.12MiB

icon

Quicklink Chrome Extension Extension · Productivity 98 8 ★ 715KiB

icon

Super-Cache Extension · Developer Tools 98 34 ★ 86.34KiB

icon

PageOptimus - website speed optimizer Extension · Developer Tools 98 5 ★ 1.37MiB

icon

Bandwidth Hero - Live Image Compression Extension · Productivity 98 95 ★ 3.07MiB

icon

Speed Up Scroll Extension · Developer Tools 98 6 ★ 28.06KiB

icon

Fast Page Load Extension · Productivity 98 16 ★ 18.12KiB

icon

Save-Data: on Extension · Productivity 98 30 ★ 17.77KiB

icon

Block Unreachable Scripts Extension · Productivity 98 6 ★ 11.06KiB

icon

Speed Tweaks Extension · Productivity 98 26 ★ 50.57KiB

icon

Ignore Google Scripts Extension · Productivity 98 3 ★ 18.68KiB

icon

Speed Up Browsing Extension · Fun 98 17 ★ 17.22KiB

icon

HTTP Indicator Extension · Developer Tools 98 6 ★ 13.1KiB

icon

Performance-Analyser Extension · Developer Tools 98 43 ★ 26.12KiB

icon

Local Cache Extension · Productivity 98 16 ★ 30.8KiB

icon

Power Cache Extension · Developer Tools 98 5 ★ 30.0KiB

icon

Load Lazyload Images Extension · Productivity 98 12 ★ 5.05KiB

icon

JSON-LD Tester Extension · Developer Tools 98 11 ★ 390KiB

icon

Sierra for Chrome Extension · Productivity 98 18 ★ 1.22MiB

icon

Page Size Inspector Extension · Developer Tools 98 24 ★ 27.61KiB

icon

ChRAM: Simple Browsing Data Cleaner Extension · Productivity 98 7 ★ 120KiB

icon

Turbo Chrome - Navegue mais rápido! Extension · Productivity 98 5 ★ 14.71MiB

icon

Content Security Policy (CSP) Generator Extension · Developer Tools 98 14 ★ 2.65MiB