Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Zero-Backend White-Label Demos: Personalizing Static Sites via URL Query Params in 18 Lines of JS

When pitching coupon bloggers, YouTube deal creators, and Facebook group admins a white-label web hub, the biggest conversion killer is asking them to "imagine" what their branded site would look like. Instead of spinning up 50 separate Vercel deployments or running a database for previews, I added 18 lines of zero-dependency vanilla JavaScript to our static HTML bundle so any creator can open…

The "Zero-Backend White-Label" approach enables instant personalized previews for static sites or micro-SaaS demos with just 18 lines of zero-dependency JavaScript. Instead of spinning up multiple Vercel deployments or running databases for previews, creators can open their live branded hub in seconds via a URL parameter.

Every page is pre-rendered during build time into pure static HTML and deployed to Vercel's edge CDN, loading in under 3 seconds. A tiny inline script reads URLSearchParams to dynamically update the header, title, and call-to-action based on the 'brand' query parameter. If the brand is missing, the script does nothing.

This method beats multi-tenant SaaS for fast B2B creator demos as it has zero cold starts and 100% cacheable pages. The underlying HTML remains identical for every visitor, with only the client-side elements dynamically hydrating based on the query parameter. This allows for instant outbound personalization by displaying the creator's channel name above the fold alongside live deal information.

Creators can also type their own channel or Facebook group name into /whitelabel.html to generate their branded preview in just 5 seconds. The live demo and Cyber Monday 2026 tools, such as the 15-store Black Friday / Cyber Monday cashback calculator, showcase this approach in action.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How ElevenLabs Handles Emotion and Prosody in Speech

What Makes a Synthetic Voice Feel Human? When you hear a TTS engine say “I’m really excited about this!” and it actually sounds excited, you’ve witnessed the magic of emotion and prosody working…

  • ElevenLabs' tech creates natural-sounding voices with emotion and prosody.
  • Latent diffusion architecture encodes speaker, timbre, emotion, and prosody in shared space.
  • API lets controlling emotion via request payload with strength and prosody through scalar values.

Why 92.9% of Small-Business Websites Miss 3s Mobile LCP (692-Site Lighthouse Dataset)

We analyzed a deduplicated benchmark sample of 692 small-business websites with single-run automated Google Lighthouse mobile audits.

  • 92.9% of small-business websites have slow mobile loading times
  • Median mobile LCP is 8.13 seconds, exceeding Google's 2.5-second recommendation
  • Builder platforms like Squarespace and WordPress have higher mobile LCP times

How to Build a Persistent 3-Step Checklist Widget in 12 Lines of Vanilla JS (No Frameworks)

Most interactive checklists on the web pull in 150 KB of React state libraries just to toggle three checkboxes. When I built a live countdown & 3-step Cyber Monday cashback tracker for shoppers trying…

  • Insert three checkboxes with class "cm-chk" and data attributes for step numbers
  • Initialize JavaScript object st from local storage or default to empty object
  • Update progress and monetary value in "cm-prog" div on checkbox state changes

More from Friday 27 November →