Scaling 4,400 Pages Without Breaking: Static Site Experience
A static site with 3,400 hotel listings generates 4,400 HTML pages. Insights on scaling challenges and solutions are provided.
Luxury Hotel Offers is a fully static site with over 3,400 hotel listings, generating 4,400 HTML pages at build time. To avoid exceeding Googlebot's 2 MB HTML limit, the initial HTML is capped at 400 cards, with the remaining cards served as a separate HTML fragment. This ensures effective crawling by search engines.
Additionally, the last modified dates for the 4,400 pages are updated only when actual content changes occur to avoid being flagged as spam. To address slow DOM filtering on mobile devices, methods like pre-indexed search and batch DOM updates are implemented. Finally, an image management pipeline generates optimized WebP variants to prevent unnecessary processing during builds.