Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

Performance

Bundle sizes, loading strategies, and caching for Vanilla Breeze.

Architecture Overview

Vanilla Breeze uses a modular loading architecture. Instead of shipping one monolithic bundle, the framework splits into focused layers that load on demand:

Core CSS + Core JS          ← every page (88 KB gzip)
├── Extras JS               ← on demand (niche components)
├── Theme CSS               ← on demand (one at a time)
├── Charts CSS              ← on demand (data viz pages)
├── Dev CSS + Dev JS        ← on demand (debug only)
└── Service Worker          ← opt-in caching layer

Full CSS + Full JS          ← backwards-compat single bundle

The core bundles contain the base styles, layout primitives, native element styles, custom elements, and essential web components. The full bundles include everything (all themes, all components) for zero-config setups.

Bundle Inventory

Every CDN artifact with raw, gzip, and brotli sizes. Data from the latest build.

Artifact Raw Gzip Brotli Budget Status
doc-extras.js 176.2 KB 46.3 KB 37.4 KB -- --
emoji-extended.js 96.0 KB 22.9 KB 18.6 KB -- --
fonts/math-fonts.css 0.7 KB 0.5 KB 0.4 KB -- --
icons/bold.css 1.9 KB 0.4 KB 0.3 KB -- --
icons/custom.css 0.7 KB 0.3 KB 0.2 KB -- --
icons/lucide.css 126.2 KB 13.5 KB 12.1 KB -- --
icons/mage.css 1.9 KB 0.4 KB 0.3 KB -- --
icons/phosphor.css 2.1 KB 0.4 KB 0.3 KB -- --
icons/tabler.css 2.0 KB 0.4 KB 0.3 KB -- --
packs/ambient.atmosphere.js 2.3 KB 1.1 KB 0.9 KB 3.0 KB OK
packs/ambient.bundle.js 1.0 KB 0.5 KB 0.4 KB -- --
packs/ambient.core.js 7.4 KB 3.2 KB 2.9 KB 3.5 KB OK
packs/ambient.effects.css 10.9 KB 2.4 KB 2.1 KB -- --
packs/ambient.full.css 13.5 KB 3.0 KB 2.6 KB 4.0 KB OK
packs/ambient.full.js 7.3 KB 3.2 KB 2.9 KB -- --
packs/ambient.head.js 2.1 KB 1.1 KB 1.0 KB 1.3 KB OK
packs/ambient.resolve.js 6.9 KB 3.1 KB 2.8 KB -- --
packs/ambient.theme.css 2.6 KB 0.7 KB 0.7 KB -- --
packs/effects.full.css 6.4 KB 1.6 KB 1.4 KB -- --
packs/effects.full.js 35.0 KB 11.0 KB 9.9 KB -- --
packs/effects.pack.js 0.4 KB 0.3 KB 0.2 KB -- --
packs/fonts-display.bundle.js 1.1 KB 0.4 KB 0.4 KB -- --
packs/fonts-display.full.css 1.4 KB 0.4 KB 0.3 KB -- --
packs/fonts-display.theme.css 1.4 KB 0.4 KB 0.3 KB -- --
packs/fonts-expressive.bundle.js 0.7 KB 0.4 KB 0.4 KB -- --
packs/fonts-expressive.full.css 1.8 KB 0.6 KB 0.5 KB -- --
packs/fonts-expressive.theme.css 1.8 KB 0.6 KB 0.5 KB -- --
packs/fonts-foundation.bundle.js 1.0 KB 0.4 KB 0.4 KB -- --
packs/fonts-foundation.full.css 1.4 KB 0.5 KB 0.4 KB -- --
packs/fonts-foundation.theme.css 1.4 KB 0.5 KB 0.4 KB -- --
packs/icons.bundle.js 1.1 KB 0.5 KB 0.4 KB -- --
packs/icons.effects.css 2.1 KB 0.6 KB 0.5 KB -- --
packs/icons.effects.js 2.0 KB 0.9 KB 0.8 KB -- --
packs/icons.full.css 3.9 KB 1.1 KB 1.0 KB -- --
packs/icons.full.js 1.9 KB 0.9 KB 0.8 KB -- --
packs/icons.theme.css 1.8 KB 0.7 KB 0.6 KB -- --
packs/journal.effects.css 8.5 KB 2.1 KB 1.8 KB -- --
packs/journal.full.css 8.5 KB 2.1 KB 1.8 KB -- --
packs/kawaii.bundle.js 0.9 KB 0.5 KB 0.4 KB -- --
packs/kawaii.effects.css 7.3 KB 1.9 KB 1.6 KB -- --
packs/kawaii.effects.js 0.0 KB 0.1 KB 0.0 KB -- --
packs/kawaii.full.css 12.1 KB 2.9 KB 2.5 KB -- --
packs/kawaii.full.js 18.6 KB 5.7 KB 5.1 KB -- --
packs/kawaii.theme.css 4.8 KB 1.2 KB 1.1 KB -- --
packs/memphis.bundle.js 1.0 KB 0.5 KB 0.5 KB -- --
packs/memphis.effects.css 3.7 KB 0.7 KB 0.6 KB -- --
packs/memphis.effects.js 0.0 KB 0.1 KB 0.0 KB -- --
packs/memphis.full.css 19.3 KB 3.5 KB 3.0 KB -- --
packs/memphis.full.js 0.0 KB 0.1 KB 0.0 KB -- --
packs/memphis.theme.css 15.6 KB 3.0 KB 2.6 KB -- --
packs/prototype.full.css 2.0 KB 0.6 KB 0.5 KB -- --
packs/prototype.full.js 16.3 KB 5.6 KB 4.8 KB -- --
packs/prototype.pack.js 0.3 KB 0.2 KB 0.2 KB -- --
packs/ui.full.css 5.7 KB 1.6 KB 1.4 KB -- --
packs/ui.full.js 34.8 KB 10.6 KB 9.3 KB -- --
packs/ui.pack.js 0.3 KB 0.2 KB 0.2 KB -- --
sw.js 1.5 KB 0.7 KB 0.6 KB 1.5 KB OK
vanilla-breeze-autoload.js 605.6 KB 177.5 KB 146.3 KB -- --
vanilla-breeze-charts.css 21.9 KB 3.6 KB 3.1 KB 4.9 KB OK
vanilla-breeze-charts.js 82.0 KB 24.3 KB 21.4 KB -- --
vanilla-breeze-core.css 559.7 KB 88.9 KB 69.3 KB 89.8 KB OK
vanilla-breeze-core.js 504.5 KB 146.5 KB 120.8 KB 148.4 KB OK
vanilla-breeze-dev.css 19.5 KB 3.2 KB 2.8 KB 3.4 KB OK
vanilla-breeze-dev.js 6.8 KB 2.6 KB 2.3 KB 2.9 KB OK
vanilla-breeze-extras.js 409.6 KB 118.0 KB 98.9 KB 123.0 KB OK
vanilla-breeze-labs.css 5.2 KB 1.5 KB 1.4 KB -- --
vanilla-breeze-labs.js 1.6 KB 0.8 KB 0.7 KB -- --
vanilla-breeze.css 729.6 KB 115.2 KB 88.4 KB 117.2 KB OK
vanilla-breeze.js 1158.8 KB 333.8 KB 262.9 KB 335.9 KB OK
view-transitions.css 5.1 KB 0.8 KB 0.7 KB -- --
Total 6872.2 KB 1837.2 KB 1535.5 KB
Theme sizes
Theme Gzip Brotli
themes/8bit.css 3.2 KB 2.8 KB
themes/alpha1999.css 2.7 KB 2.3 KB
themes/art-deco.css 1.9 KB 1.6 KB
themes/bauhaus.css 2.1 KB 1.8 KB
themes/brutalist.css 2.2 KB 1.9 KB
themes/catppuccin-frappe.css 1.7 KB 1.4 KB
themes/catppuccin-latte.css 1.7 KB 1.4 KB
themes/catppuccin-macchiato.css 1.7 KB 1.4 KB
themes/catppuccin-mocha.css 1.7 KB 1.4 KB
themes/classic.css 1.0 KB 0.8 KB
themes/claymorphism.css 2.4 KB 2.0 KB
themes/clinical.css 1.3 KB 1.1 KB
themes/cottagecore.css 2.3 KB 1.9 KB
themes/cyber.css 3.0 KB 2.6 KB
themes/dawn.css 1.7 KB 1.5 KB
themes/dracula.css 1.6 KB 1.4 KB
themes/dusk.css 1.6 KB 1.4 KB
themes/editorial.css 2.4 KB 2.0 KB
themes/financial.css 1.6 KB 1.4 KB
themes/genai.css 2.2 KB 1.8 KB
themes/glassmorphism.css 2.5 KB 2.0 KB
themes/government.css 1.4 KB 1.1 KB
themes/gruvbox.css 1.7 KB 1.4 KB
themes/high-noon.css 1.6 KB 1.4 KB
themes/journal.css 1.8 KB 1.5 KB
themes/kawaii.css 3.6 KB 3.0 KB
themes/magna.css 2.5 KB 2.1 KB
themes/midnight.css 1.5 KB 1.3 KB
themes/minimal.css 0.8 KB 0.7 KB
themes/modern.css 1.2 KB 1.0 KB
themes/nes.css 3.6 KB 3.1 KB
themes/neumorphism.css 3.9 KB 3.3 KB
themes/nord.css 1.9 KB 1.6 KB
themes/organic.css 2.6 KB 2.2 KB
themes/rose-pine.css 1.7 KB 1.5 KB
themes/rough.css 3.1 KB 2.6 KB
themes/solarized.css 1.5 KB 1.3 KB
themes/startup.css 1.8 KB 1.6 KB
themes/super2026.css 4.2 KB 3.7 KB
themes/swiss.css 1.8 KB 1.6 KB
themes/terminal.css 2.6 KB 2.2 KB
themes/tokyo-night.css 1.7 KB 1.4 KB
themes/vaporwave.css 2.5 KB 2.1 KB
themes/win9x.css 4.1 KB 3.4 KB
Individual component sizes
Component Gzip Brotli
components/accordion-wc.js 2.1 KB 1.8 KB
components/activity-feed.js 4.0 KB 3.6 KB
components/adr-record.js 5.2 KB 4.5 KB
components/ai-chat.js 5.3 KB 4.6 KB
components/ai-summary.js 4.1 KB 3.6 KB
components/analytics-panel.js 5.2 KB 4.6 KB
components/audio-player.js 5.8 KB 5.0 KB
components/audio-visualizer.js 3.2 KB 2.8 KB
components/author-index.js 2.7 KB 2.4 KB
components/brand-mark.js 1.8 KB 1.6 KB
components/bread-crumb.js 2.2 KB 1.9 KB
components/calendar-wc.js 7.2 KB 6.5 KB
components/card-list.js 5.1 KB 4.5 KB
components/carousel-wc.js 5.6 KB 5.0 KB
components/change-set.js 1.7 KB 1.5 KB
components/chart-wc.js 24.3 KB 21.4 KB
components/chat-input.js 1.9 KB 1.7 KB
components/chat-window.js 4.9 KB 4.3 KB
components/color-picker.js 7.6 KB 6.7 KB
components/combo-box.js 5.2 KB 4.6 KB
components/command-palette.js 4.8 KB 4.3 KB
components/comment-box.js 19.6 KB 17.7 KB
components/comment-thread.js 21.9 KB 19.6 KB
components/comment-wc.js 1.5 KB 1.3 KB
components/compare-surface.js 2.0 KB 1.7 KB
components/consent-banner.js 2.5 KB 2.2 KB
components/content-lens.js 1.7 KB 1.5 KB
components/content-swap.js 2.5 KB 2.2 KB
components/context-menu.js 6.8 KB 6.1 KB
components/data-table.js 5.6 KB 5.0 KB
components/date-picker.js 7.0 KB 6.2 KB
components/day-view.js 4.0 KB 3.6 KB
components/diagram-wc.js 4.2 KB 3.7 KB
components/drag-surface.js 4.4 KB 3.9 KB
components/drop-down.js 4.7 KB 4.2 KB
components/emoji-picker.js 11.5 KB 9.9 KB
components/flow-diagram.js 3.5 KB 3.0 KB
components/foot-notes.js 3.3 KB 2.9 KB
components/form-field.js 2.6 KB 2.3 KB
components/geo-map.js 10.3 KB 9.1 KB
components/glossary-index.js 4.7 KB 4.1 KB
components/glossary-wc.js 6.8 KB 6.1 KB
components/heading-links.js 3.9 KB 3.4 KB
components/highlight-wc.js 7.3 KB 6.5 KB
components/icon-wc.js 4.7 KB 4.2 KB
components/image-gallery.js 6.1 KB 5.4 KB
components/image-map.js 4.3 KB 3.9 KB
components/include-file.js 4.3 KB 3.8 KB
components/markdown-editor.js 17.5 KB 15.8 KB
components/markdown-viewer.js 16.3 KB 14.8 KB
components/nav-bar.js 2.4 KB 2.1 KB
components/note-wc.js 7.6 KB 6.7 KB
components/notification-wc.js 8.1 KB 7.2 KB
components/page-info.js 6.0 KB 5.4 KB
components/page-meta.js 1.0 KB 0.9 KB
components/page-stats.js 2.8 KB 2.5 KB
components/page-toc.js 2.9 KB 2.5 KB
components/page-tools.js 2.7 KB 2.3 KB
components/page-tour.js 5.1 KB 4.6 KB
components/pager-wc.js 3.4 KB 3.0 KB
components/poll-wc.js 3.2 KB 2.8 KB
components/pop-over.js 2.5 KB 2.2 KB
components/popularity-index.js 2.5 KB 2.2 KB
components/print-page.js 1.4 KB 1.2 KB
components/progress-tracker.js 2.7 KB 2.4 KB
components/qr-code.js 8.6 KB 7.6 KB
components/reaction-bar.js 4.3 KB 3.9 KB
components/reader-view.js 4.7 KB 4.1 KB
components/reading-progress.js 1.5 KB 1.3 KB
components/recently-visited.js 4.0 KB 3.5 KB
components/roadmap.js 3.0 KB 2.6 KB
components/score-card.js 3.6 KB 3.1 KB
components/selection-menu.js 4.8 KB 4.3 KB
components/settings-panel.js 15.9 KB 14.1 KB
components/share-wc.js 4.9 KB 4.3 KB
components/short-cuts.js 3.8 KB 3.4 KB
components/site-index.js 3.7 KB 3.3 KB
components/site-map-wc.js 7.5 KB 6.7 KB
components/site-map.js 9.0 KB 8.1 KB
components/site-search.js 5.2 KB 4.6 KB
components/slide-accept.js 2.6 KB 2.2 KB
components/social-embed.js 6.0 KB 5.3 KB
components/social-feed.js 9.5 KB 8.5 KB
components/social-links.js 0.5 KB 0.4 KB
components/split-surface.js 3.4 KB 3.0 KB
components/star-rating.js 2.4 KB 2.2 KB
components/status-wc.js 1.5 KB 1.3 KB
components/stepper-wc.js 4.5 KB 3.9 KB
components/tab-set.js 2.3 KB 2.0 KB
components/text-reader.js 5.0 KB 4.5 KB
components/theme-picker.js 10.6 KB 9.4 KB
components/theme-wc.js 6.3 KB 5.4 KB
components/time-index.js 3.1 KB 2.7 KB
components/time-picker.js 5.8 KB 5.2 KB
components/toast-msg.js 2.7 KB 2.3 KB
components/tool-tip.js 4.4 KB 3.9 KB
components/topic-map.js 3.0 KB 2.7 KB
components/trust-filter.js 2.7 KB 2.4 KB
components/version-switcher.js 9.8 KB 8.8 KB
components/video-player.js 9.1 KB 8.0 KB
components/watch-wc.js 8.8 KB 7.9 KB
components/week-view.js 5.2 KB 4.7 KB
components/youtube-player.js 2.3 KB 1.9 KB

Loading Strategies

Core only (recommended)

The smallest footprint. Includes base styles, layout, native element styles, and core web components.

<link rel="stylesheet" href="/cdn/vanilla-breeze-core.css">
<script type="module" src="/cdn/vanilla-breeze-core.js"></script>

Core + Extras

Adds niche and heavier components (media players, geo map, emoji picker, markdown editor, chat, QR code, etc.) as a separate bundle.

<link rel="stylesheet" href="/cdn/vanilla-breeze-core.css">
<script type="module" src="/cdn/vanilla-breeze-core.js"></script>
<script type="module" src="/cdn/vanilla-breeze-extras.js"></script>

Full bundle

Everything in one file. Simplest to set up, largest download.

<link rel="stylesheet" href="/cdn/vanilla-breeze.css">
<script type="module" src="/cdn/vanilla-breeze.js"></script>

Autoloader

Only loads components as they appear in the DOM. Best for pages that use few components. It finds its chunk folder (components/) next to its own script, so it works from your own server or a CDN such as unpkg.

<link rel="stylesheet" href="/cdn/vanilla-breeze-core.css">
<script type="module" src="/cdn/vanilla-breeze-autoload.js"></script>

Add-ons

Charts, dev tools, and themes are loaded separately when needed.

<!-- Charts (data visualization) -->
<link rel="stylesheet" href="/cdn/vanilla-breeze-charts.css">

<!-- Dev tools (debug overlays, wireframe) -->
<link rel="stylesheet" href="/cdn/vanilla-breeze-dev.css">
<script type="module" src="/cdn/vanilla-breeze-dev.js"></script>

<!-- Individual theme -->
<link rel="stylesheet" href="/cdn/themes/art-deco.css">

Every script above uses type="module", which is deferred by default; see async / defer for how script timing works and blocking for holding the first paint until a resource loads. For images and iframes in your own content, see loading for lazy loading and fetch priority.

Budget Policy

Every CDN artifact has a gzip size budget defined in scripts/bundle-budget.config.json. The npm run budget script checks all artifacts against their budgets and fails with exit code 1 if any are exceeded.

This check runs in CI as part of the quality gate, blocking deployment if bundle sizes regress beyond their budgets.

Current budgets

Core CSS
48 KB gzip
Core JS
50 KB gzip
Full CSS
90 KB gzip
Full JS
76 KB gzip
Extras JS
29 KB gzip
Individual themes
4 KB gzip each
Individual components
10 KB gzip each

Service Worker

Vanilla Breeze includes an opt-in service worker for offline caching. It uses stale-while-revalidate for theme CSS and optional modules, and precaches core bundles on install.

Opt in

Add a meta tag to enable caching:

<meta name="vb-service-worker" content="true">

Or set a global flag before importing:

<script>window.__VB_SERVICE_WORKER = true;</script>
<script type="module" src="/cdn/vanilla-breeze-core.js"></script>

Cache versioning

The service worker names its cache using the build version (e.g., vb-0.1.0). When a new version deploys, the old cache is automatically pruned during activation.

Cache management

The service worker supports a message channel for programmatic cache control:

import { getSWStatus, clearSWCache, checkForUpdate } from 'vanilla-breeze/lib/sw-register.js';

// Get cache status
const status = await getSWStatus();
// { version: '0.1.0', cacheName: 'vb-0.1.0', cachedURLs: [...] }

// Clear all VB caches
await clearSWCache();

// Check for updates
const { updated } = await checkForUpdate();

The settings panel includes a System section with cache management controls when the service worker is active.

↑