Skip to content
About

Same Bug, Different Page

Applied the same Alpine.js timing fix from the compliance dashboard to the reference page — it had the same problem.

1 min readEvergreen
On this page

This one is short: same bug, different page.

What happened

The compliance dashboard had a bug where parts of the page wouldn't show up — the JavaScript that runs the interactive pieces was trying to start before the page was fully loaded. Like showing up to a party before the host has unlocked the door.

We fixed that on the dashboard. Then I noticed the reference page had the exact same problem. So I applied the same fix there too.

The fix: instead of waiting for a special signal to set up the page's interactive pieces, we define them directly in the page file so they're ready from the start.


PR: https://github.com/StevieIsmagic/honest-cam/pull/29

Enjoyed this? Join the newsletter.

New essays and notes straight to your inbox.

Newsletter coming soon — stay tuned.