Core Architectural Goals

Modern websites are often burdened by megabytes of compiled JavaScript bundles, hydration overhead, and fragile runtime dependencies. For New Mex Engravers, we transitioned from a compiled Next.js SPA bundle to a clean, portable static architecture with three fundamental goals:

  • Near-Instant Performance Low page weight with zero blocking framework bundles, ensuring sub-second load times on desktop and mobile connections.
  • Zero Dynamic Server Overhead Pure static HTML5, CSS3, and vanilla ES6+ JavaScript hosted without complex build pipelines or database attack surfaces.
  • Complete Data Autonomy The entire site lives in human-readable, version-controlled files with a zero-dependency Node.js search index generator.

How It Works: Component Breakdown

1. Vanilla Semantic HTML5 & Modern CSS

Rather than shipping compiled framework chunks, the site relies on clean native HTML5 markup and a master stylesheet using CSS custom properties, Flexbox, and CSS Grid.

2. Modular Dynamic Chrome (Header & Footer Fetching)

To maintain standard static HTML pages without duplicating navigation across every file, /assets/js/main.js asynchronously loads standalone header.html and footer.html fragments on DOM load and binds active link states and mobile menu controls.

3. Client-Side Live Search (Zero Server Queries)

The global search bar in the header executes entirely in your browser using search-index.json and fuzzy matching. Every product card, material guide, and service item includes structured data-title, data-category, and data-keywords attributes.

4. Deep-Link Anchors, Interactive Filtering & Lightbox

Category filters on the homepage and portfolio page, multi-image product switchers, image zoom lightboxes, and deep-link hash scrolling (which automatically unfilters hidden cards and highlights the target item) are powered by lightweight vanilla JavaScript.

← Back to About New Mex Engravers