Skip to content

feat(demo): code and config views on every example, and drop picsum - #6

Merged
MeAkib merged 1 commit into
mainfrom
feat/example-viewer
Sep 14, 2026
Merged

MeAkib merged 1 commit into
mainfrom
feat/example-viewer

Conversation

@MeAkib

@MeAkib MeAkib commented Sep 14, 2026

Copy link
Copy Markdown
Owner

The StackBlitz starter pulled its images from picsum.photos, and they were not rendering. Verified in a real Chromium against the built starter: 13 failed image requests before, zero after.

The fix is what the demo already did — generate the image as an inline SVG data URI. An external image host makes the example depend on someone else's uptime, rate limits and CORS policy, and when it is slow the first thing a visitor sees is an empty grid. Data URIs render instantly, work offline, and still exercise the decode path the grid waits on.

Every demo example now sits in a shared frame with a Config toggle, a Code toggle and a copy button. The preview is deliberately never hidden: swapping it out for a tab would take the grid to display:none, where it measures zero and lays out again on the way back — a flicker caused by the demo, in the one place a visitor is judging whether the layout is steady. The panels open above a preview that stays mounted, so the code and the result are readable together.

Checked in Chromium across all five examples: both toggles, the copy button against real clipboard contents, and item counts unchanged after toggling (24, 22, 20, 15, 600). No console errors.

The StackBlitz starter pulled its images from picsum.photos, and they were not
rendering. Verified in a real Chromium against the built starter: 13 failed
image requests before, zero after.

The fix is what the demo already did — generate the image as an inline SVG data
URI. An external image host makes the example depend on someone else's uptime,
rate limits and CORS policy, and when it is slow the first thing a visitor sees
is an empty grid. Data URIs render instantly, work offline, and still exercise
the decode path the grid waits on.

Every demo example now sits in a shared frame with a Config toggle, a Code
toggle and a copy button. The preview is deliberately never hidden: swapping it
out for a tab would take the grid to display:none, where it measures zero and
lays out again on the way back — a flicker caused by the demo, in the one place
a visitor is judging whether the layout is steady. The panels open above a
preview that stays mounted, so the code and the result are readable together.

Checked in Chromium across all five examples: both toggles, the copy button
against real clipboard contents, and item counts unchanged after toggling
(24, 22, 20, 15, 600). No console errors.
@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
masonry-angular Ready Ready Preview Sep 14, 2026 4:27am UTC
masonry-angular-examples Ready Ready Preview Sep 14, 2026 4:27am UTC

This branch was successfully deployed

2 active deployments
Preview – masonry-angular-examples — ff5dc9b9 Deployed Sep 14, 2026 by vercel[bot]
Preview – masonry-angular — ff5dc9b9 Deployed Sep 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant