This page demonstrates the effect of Brotli compression, with and without a shared dictionary, on jQuery file sizes. The dictionary (`jquery.dict`) is created from jQuery 3.7.1. The jQuery 4.0.0-beta loaded for the interactive test below should be served using dictionary compression if your browser and Netlify are configured correctly.
File Version | Size (Bytes) |
---|---|
jQuery 3.7.1 (uncompressed) | |
jQuery 4.0.0-beta (uncompressed) | |
jQuery 4.0.0-beta (Brotli, no dictionary) | |
jQuery 4.0.0-beta (Brotli, with dictionary from 3.7.1) |
Click the button below. If jQuery 4.0.0-beta (potentially dictionary-compressed) is loaded correctly, the text will change. Pending...
Note: File sizes are fetched dynamically. Ensure all generated files (`jquery-3.7.1.js`, `jquery-4.0.0-beta.js`, `jquery-4.0.0-beta.js.br`, `jquery-4.0.0-beta.js.no-dict.br`, and `jquery.dict`) are present in the `/js/` directory on your Netlify site. The `_headers` file must also be correctly configured.