According to Google’s official press release, the Google development team is working on implementing shared dictionary (Shared dictionaries) compression technology in the Chrome browser, which it claims can improve website loading efficiency by more than 90%. Developers can currently test the use of Brotli or ZStandard compression algorithm dictionaries on their websites to help Google improve related features.
▲ Picture source Google official press release (the same below)
The Google team takes the Angular framework as an example. Assuming that the website is built using the Angular1.7.9 version framework, the file size is 172 KB without compression. If the Brotli compression algorithm is used, the file size can be reduced to 53 KB, thus achieving a gain of nearly 70%. compression ratio.
However, if you use the custom shared dictionary function, you can use the resource dictionary of the previous version to compress the resources of the new version. In this way, the actual output file is only 4 KB, reaching a compression rate of nearly 98%. Therefore, “it can greatly improve the web page.” Loading speed”.
We also learned from the press release that the Brotli and ZStandard compression algorithms can also be used with a custom shared dictionary to achieve higher web page efficiency. This is because the custom dictionary is an external file and can be applied to any input, these dictionaries can be product codes or any content that is highly specific to a single application, and the suitability of the dictionary for the input may have a huge impact on the overall compression efficiency, so matching a dictionary that is highly similar to the input content can achieve higher compression. Rate.
Currently, the Chrome team is open to trials of shared dictionary compression technology. For personal testing, you can enable the Compression Dictionary Transport experimental feature in the Chrome browser. Developers need to register in Chrome’s Origin Trial to obtain a token, and then use the token on the website to enable sharing. Related compression functions.
For more such interesting article like this, app/softwares, games, Gadget Reviews, comparisons, troubleshooting guides, listicles, and tips & tricks related to Windows, Android, iOS, and macOS, follow us on Google News, Facebook, Instagram, Twitter, YouTube, and Pinterest.