Breaking Changes
- Supported browsers: the default theme now targets Chrome / Edge / Firefox 100+ and Safari 15+. Older browsers may not run the scripts of the theme.
- Font settings moved into the default theme (#554): the text no longer moves after the page is shown (CLS 0).
gitbook.fontsettings,pluginsConfig.fontsettingsandplugins: ["-fontsettings"]work as before.gitbook/@honkit/honkit-plugin-fontsettings/fontsettings.jsandwebsite.cssare no longer in the output.- A custom theme that ships its own
_assets/website/theme.jshas no font settings.
@honkit/honkit-plugin-themeis no longer published (#553). Use the default theme (@honkit/honkit-plugin-theme-default).
Notable changes
- Scripts are loaded with
defer(#549): the theme and plugin scripts no longer block rendering. Inline scripts that usegitbook.push(),require()or$(fn)keep working.
Performance
The default theme is lighter and the page no longer moves after it is shown.
| Page (mobile) | Lighthouse score | Layout shift (CLS) | First paint (FCP) | LCP | Page weight | JavaScript |
|---|---|---|---|---|---|---|
| Docs top page | 94 → 99 | 0.112 → 0 | 2.11 s → 1.67 s | 2.11 s → 1.82 s | 249 KB → 185 KB | 110 KB → 48 KB |
| Docs plugins page | 83 → 99 | 0.286 → 0 | 1.96 s → 1.52 s | 1.96 s → 1.81 s | 249 KB → 185 KB | 110 KB → 48 KB |
| Long page | 94 → 99 | 0.091 → 0 | 2.26 s → 1.66 s | 2.26 s → 1.96 s | 204 KB → 140 KB | 110 KB → 48 KB |
Layout shift (CLS), docs plugins page v6.2.6 ██████████████ 0.286
v7.0.0 0
JavaScript (gzip) v6.2.6 ███████████ 110 KB
v7.0.0 █████ 48 KB
First paint (FCP), docs top page v6.2.6 ███████████ 2.11 s
v7.0.0 ████████ 1.67 s
- On desktop the score is 100 on all three pages (was 100 / 92 / 100), and CLS is 0 (was 0.031 / 0.181 / 0.039).
- Measured with Lighthouse (mobile, default simulated throttling, gzip, median of 5 runs) against the HonKit docs and a test book on a local static server, v6.2.6 → v7.0.0. The page weight includes 70 KB of icon font.
- With real (DevTools) throttling instead of the simulated one, FCP and LCP stay at about 1.5 s in both versions: the gain there is the layout shift (score 96 / 85 / 97 → 100) and the smaller JavaScript.
- What changed: scripts are loaded with
defer(#549), jQuery is no longer used inside the theme scripts (#547), and font settings are applied before the first paint (#554).
What's Changed
Security Fixes
- fix(theme-default): CSP support, focus, scroll restoration, navigation overlap and linkless TOC entries by @azu in #548
Bug Fixes
- fix(theme-default): apply font settings before the first paint, and move them into the theme by @azu in #554
Refactoring
- refactor(theme-default): drop jQuery from the theme scripts and modernize the build by @azu in #547
- refactor(theme-default): replace LESS with plain CSS by @azu in #551
- refactor(theme-default): use const and let instead of var by @azu in #552
Testing
Maintenance
CI
Other Changes
Full Changelog: v6.2.6...v7.0.0