Urgent.News

What's breaking now, across thousands of outlets.

Tech

One File, Zero External Requests: What That Rule Actually Costs You

One File, Zero External Requests: What That Rule Actually Costs You Every landing page tutorial starts with a framework. This one starts with a constraint I imposed on my own three templates and what broke when I held it: one HTML file, no CDN, no webfont, no build step, no analytics. I ship these as a product, so the numbers below are measured, not remembered. Three templates, 537 lines of HTML…

A minimalist HTML framework posits that a single, self-contained file can perform as a web page without reliance on external resources. This approach, demonstrated through three templates totaling 537 lines of HTML, eliminates the need for a Content Delivery Network, web fonts, build steps, or analytics tracking. By adhering to this constraint, the resulting page is guaranteed to load consistently across various environments, including restricted networks and offline conditions.

The primary advantage lies in its resilience against supply chain disruptions, as it eliminates the potential for third-party components to fail or be disabled. The design is simplified, featuring only one media query and an inline script, which makes it manageable and editable by non-technical users. However, the trade-off involves increased manual effort in maintaining design tokens and responsive elements, as well as the inability to submit forms without external dependencies.

Despite these challenges, the approach offers distinct benefits, such as a consistent user experience and a lightweight, easily customizable solution.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

🎤 Event Hub: Tech Conference Discovery Platform Built with Sanity CMS

# Event Hub - Sanity Challenge 2026 I built a modern tech event discovery platform using Sanity CMS and Next.js to showcase real-world CMS capabilities and structured content design.

  • Event Hub built with Sanity CMS for tech conferences
  • Full-stack TypeScript application with Next.js and React
  • Demonstrates complex relational content in real-world apps

Common Next.js Mistakes Beginners Make (and How to Avoid Them)

1. Using "use client" Everywhere One common mistake beginners make in Next.js is adding "use client" to almost every component.

  • Avoid overusing use client to reduce JavaScript sent to the browser.
  • Utilize next/image for image optimization in Next.js projects.
  • Break down components into smaller, reusable sections for better maintainability.

What Obfuscation Breaks: Reflection, Serialization, and What to Exclude

You add an obfuscator to a working .NET app, build, run — and something that worked yesterday is broken. The JSON your API returns has fields named a and b .

  • Obfuscation breaks reflection calls, returning null for renamed methods.
  • Serialization, data binding, and DI fail when names are renamed at runtime.
  • Exclude only names resolved by string at runtime to preserve program integrity.

More from Saturday 3 October →