Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Banner BoardNew to Visual Studio Code? Get it now.
Banner Board

Banner Board

HunterRei

|
2 installs
| (0) | Free
Preview every HTML5 banner size side by side in VS Code, with synced replay and GSAP 3 scrubbing, spec checks, a console for each banner, screenshots and handoff zips.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Banner Board

See every banner size side by side in one VS Code panel, then spec-check, screenshot and zip them for handoff without leaving the editor.

Features

Preview

  • Tiled preview of every size folder (300x250/, 728x90/, …) at true pixel size
  • Replay all reloads every banner at the same moment, so you can compare timing across sizes
  • Pause and scrub every GSAP 3 timeline together (CSS/Web Animations too). GSAP 2 isn't supported for this; see Compatibility.
  • Reload on save: editing 300x250/index.html reloads just that banner, and shared files reload all of them
  • Zoom: Fit, 50–200%
  • Preview background: editor, white, black or checkerboard, for checking edges and borders
  • Show or hide sizes, open any banner in an external browser, reveal it in Explorer
  • Built-in server, so you don't need live-server or CodeKit

Console (›_ Console), per size:

  • Each banner's console.log/warn/error, uncaught errors, unhandled promise rejections, and failed asset loads (a missing img/…, a CDN script that didn't load) appear under that banner.
  • A badge on each tile shows the count: red ✖ for errors, yellow ⚠ for warnings. The toolbar shows the total error count.
  • Capture starts before the banner's own scripts run, so errors from <head> scripts are caught too.
  • The console clears on every reload, so it always shows the current run.

Spec check (✓ Specs), per size:

  • Zipped weight against a limit (default 150 KB). The zip is what vendors and ad servers measure.
  • Total weight of the asset folder (img/), with the three heaviest files listed and an optional limit
  • clickTag present
  • <meta name="ad.size"> matches the folder name
  • Files referenced outside the folder (../), which won't make it into the zip
  • Missing local files referenced in index.html
  • GSAP animation length against a limit (default 30s)

Screenshots (📷): captures timed frames and ISI shots for every size, driven by HTML/config.json. See below.

Optimize PNGs (🗜): runs pngquant over every PNG in _screenshots/, overwriting each file in place. It's also offered on the "screenshots saved" notification, and it can run automatically after every capture.

Export zips (⇩): writes one zip per size, with index.html at the zip root, plus an _all-sizes.zip bundle to send to the vendor. Junk like .DS_Store is skipped. If any size has spec warnings, it asks you to confirm first.

Usage

Right-click the folder that contains your size folders (e.g. HTML/) and choose Open Banner Board. The context menu also has Capture Screenshots, Optimize Screenshot PNGs and Export Zips for Handoff, and all four are in the Command Palette under "Banner Board".

PROJECT/
└── HTML/
    ├── config.json        ← screenshot settings (created with defaults if missing)
    ├── 160x600/index.html, img/
    ├── 300x250/index.html, img/
    ├── 300x600/index.html, img/
    ├── 728x90/index.html,  img/
    ├── _screenshots/      ← output
    └── _zips/             ← output
Key Action
Space Pause / play
R Replay all
← / → Step 0.1s (hold Shift for 1s)

Inspecting elements and the console

The per-tile console covers most debugging. For the full DevTools, click ⚙ DevTools in the toolbar, or run Developer: Open Webview Developer Tools from the Command Palette (⇧⌘P).

Each banner runs in its own iframe inside the board:

  • Console: pick the banner from the context dropdown at the top of the Console tab (it shows as 127.0.0.1, one entry per size).
  • Elements: expand the board's <iframe> for that size to inspect the banner's DOM, or use the element picker directly on the banner.

Screenshots

This uses the same config.json format as the team's bannerScreenshots CLI and writes the same file names to HTML/_screenshots/<size>/:

  • 300x250-4.png, 300x250-9.png, …: one per entry in timmings
  • 300x250-isi-expand.png: the ISI expanded (via isi_handler(), or a click on isiExpandButton), scrollbar visible
  • 300x250-isi-full.png: the full-length ISI, with the scrollbar and expand button hidden
{
  "isi": true,
  "expandISI": true,
  "isiAutoScroll": true,
  "startDelay": 1,
  "timmings": [4, 9, 14],
  "adContainer": "#container_ad",
  "isiContainer": "#containerISI",
  "isiContent": "#scroller",
  "isiExpandButton": "#isi_btn",
  "isiScrollBar": ".iScrollVerticalScrollbar",
  "piBottomObject": "#isiPiBottom",
  "extraSpaceBottomISI": 15,
  "extraCSS": "",
  "728x90": { "isi": false }
}
  • Frames are captured at startDelay + t seconds after the page loads.
  • isiAutoScroll: true calls autoScrollKill() and myScroll.scrollTo(0, 0) before each frame, so the ISI shows from the top.
  • Per-size overrides: add a key named after the size (like "728x90" above) to override any setting for that size.
  • Screenshots need a Chromium-based browser. Chrome, Edge, Brave or Vivaldi is detected automatically, or set bannerBoard.browserPath.

Optimizing: install pngquant once with brew install pngquant. The extension finds it on your PATH or in /opt/homebrew/bin or /usr/local/bin, or you can set bannerBoard.pngquantPath. It runs with --quality 75-90 --speed 1 --strip --skip-if-larger, and if a file can't reach the minimum quality, the original is kept. pngquant is GPL-licensed, so it's used if installed rather than bundled.

Changes from the CLI: frames now land on their labelled times. In the CLI, the first frame always waited 1s, and screenshot time accumulated between frames. Banners load over http instead of file://, and a single browser handles all sizes.

Compatibility

GSAP 3 (gsap.*) GSAP 2 (TweenMax, TweenLite, TimelineMax)
Tiled preview, Replay all, reload on save ✓ ✓
Pause / scrub / step ✓ ✗
Animation length (spec check, scrubber range) ✓ ✗
Console, spec checks, zip export ✓ ✓
Screenshots ✓ ✓ (captured in real time, so the GSAP version doesn't matter)

Banners using GSAP 2 show a GSAP 2 · no scrub badge. CSS animations and the Web Animations API can be paused and scrubbed too.

Requires VS Code 1.85 or newer. Screenshots need a Chromium-based browser (Chrome, Edge, Brave or Vivaldi), and PNG optimization needs pngquant.

Settings

Setting Default
bannerBoard.maxWeightKB 150 Zipped weight limit per size
bannerBoard.assetFolder img Folder whose weight is reported
bannerBoard.maxAssetWeightKB 0 Asset folder limit (0 = report only)
bannerBoard.maxDurationSec 30 GSAP animation length limit
bannerBoard.screenshotScale 1 Screenshot pixel ratio (2 = retina)
bannerBoard.pngquantQuality 75-90 pngquant min-max quality (lower = smaller)
bannerBoard.optimizeAfterScreenshots false Run pngquant automatically after every capture
bannerBoard.pngquantPath pngquant binary (auto-detected if empty)
bannerBoard.browserPath Browser for screenshots (auto-detected if empty)
bannerBoard.sizePattern ^(\d+)x(\d+) Regex for size folder names
bannerBoard.autoReload true Reload on save

How it works

The extension serves the banner folder from a local server bound to 127.0.0.1 and loads each size in an iframe inside a webview. A small helper script is injected into each served index.html (never written to disk). It talks to the board over postMessage to pause and seek gsap.exportRoot(). Screenshots drive a headless browser through puppeteer-core against the same server.

Development

npm install
npm run compile   # type-check + bundle to dist/
# F5 in VS Code to launch the Extension Development Host
npm run package   # builds banner-board-x.y.z.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft