Weblize
Web studio · Doha, Qatar
Loading Weblize

CarHub Qatar

CarHub Qatar — car rental site indexable without JavaScript

The project

The CarHub Qatar homepage at carhub.qa, captured 2026-08-20

CarHub is a Doha car rental site that still says something useful with JavaScript switched off. A single-page application normally hands a crawler an empty shell; this one carries a server-injected structured-data block and a complete no-JavaScript fallback — a heading, an introduction and a thirteen-link navigation — inside the HTML before any script runs, so a crawler that executes nothing still receives readable content and a route into every commercial page. Analytics is held back until the browser goes idle rather than competing with the first paint. Behind that sit a thirty-plus vehicle catalogue with a page per car, six service landing pages, and district pages for West Bay, The Pearl and Lusail.

Client: CarHub Qatar · Sector: Car rental · Live site: carhub.qa

What was built

  • A complete no-JavaScript fallback block — heading, introduction and a 13-link navigation — so the page is indexable without JavaScript
  • Server-injected structured data in the HTML shell, present before any JavaScript runs
  • Google Tag Manager loaded only once the browser is idle, to keep it out of the critical rendering path
  • Deep-link recovery so a shared URL still resolves after the single-page 404 fallback
  • React single-page application served behind a CDN
  • Vehicle catalogue with a dedicated page for each car
  • Service landing pages: rent a car Doha, luxury, cheap, SUV, monthly and airport rental
  • Doha district landing pages: West Bay, The Pearl and Lusail
  • About, contact, privacy and terms pages
  • An admin area, excluded from search engines in robots.txt

The stack

  • React
  • Vite with the Rolldown bundler
  • TypeScript-era ES modules with modulepreload
  • Cloudflare CDN in front of a Google-backed origin
  • Google Tag Manager
  • schema.org JSON-LD

How this was verified

Every statement above was observed on the live public site on 2026-08-17. There are no outcome metrics here — no traffic, no conversion, no revenue figures — because none of them are observable from outside the client's business.

  • GET https://carhub.qa/ (2026-08-17) → HTTP 200, 7,310 bytes. Headers: "server: cloudflare", "cf-ray: a2c999f6e91cff72-BOM", "via: 1.1 google".
  • HTML shell contains <script type="module" crossorigin src="/assets/index-BExiqXMl.js"> plus <link rel="modulepreload" href="/assets/rolldown-runtime-aKtaBQYM.js"> — a Vite/Rolldown build. Further modulepreloads observed for client, logo, button and defineProperty chunks.
  • The no-JavaScript fallback is a real element in the shell: <div id="carhub-server-seo-fallback"><noscript><main><h1>Rent a Car in Doha, Qatar</h1>…<nav aria-label="CarHub rental links"><ul> with 13 <li><a> entries (/cars, /car-rental-qatar, /car-rental-doha, /rent-a-car-doha, /rent-a-car-qatar, /luxury-car-rental-doha, /luxury-car-rental-qatar, /suv-rental-doha, /monthly-car-rental-doha, /monthly-car-rental-qatar, /airport-car-rental-qatar, /corporate-car-rental-qatar, /contact).
  • Server-injected structured data: <script id="carhub-server-jsonld" type="application/ld+json"> containing a CarRental entity (@id https://carhub.qa/#business, telephone +97451132777, currenciesAccepted QAR, serviceType Car Rental / Luxury / SUV / Economy / Monthly) and a WebPage entity.
  • GTM container GTM-K9HKXG3L is wrapped in window.addEventListener('load', …) and then requestIdleCallback(loadTagManager, { timeout: 2500 }) with a setTimeout fallback — deferred, not in the critical path.
  • GET https://carhub.qa/sitemap.xml → HTTP 200, 89 <loc> entries and 267 hreflang annotations (en, ar, x-default). Includes /cars, /about, /contact, /privacy, /terms, the service and district pages above, and 30+ /car/<slug> vehicle pages (e.g. /car/nissan-patrol-2025, /car/lexus-lx-700-2025, /car/mercedes-g63).
  • Language handling is client-side: the sitemap's hreflang="ar" and hreflang="en" resolve to the SAME URL (both https://carhub.qa), and GET https://carhub.qa/ar → HTTP 200 returning the English shell with <html lang="en"> and no Arabic characters in the served HTML. Arabic is rendered by JavaScript, not served per-URL.
  • GET https://carhub.qa/admin → HTTP 200 (the single-page shell). robots.txt contains "Disallow: /admin/".
  • A sessionStorage 'spa_redirect' restore script is inline in the shell, recovering the path saved by the 404.html single-page fallback.
  • Screenshot captured 2026-08-20 — headless Chromium from this machine, GET https://carhub.qa → HTTP 200, viewport 1440x900 at deviceScaleFactor 2, downscaled to 1600x1000 WebP. Page title at capture: "Rent a Car in Doha, Qatar | CarHub Qatar". The image on the case-study page is that capture, unedited and uncomposited.
  • Bilingual mirror captured 2026-10-24 — headless Chrome from this machine. The site's own "العربية" link leads to https://carhub.qa/ar. GET https://carhub.qa/ → HTTP 200 and GET https://carhub.qa/ar → HTTP 200; once its scripts have run, the Arabic page declares dir="rtl" with the title "احجز سيارات فاخرة واقتصادية للإيجار في الدوحة، قطر | CarHub Qatar". Each URL was loaded fresh at 1440x900 and at 390x844 with a phone user agent, both at deviceScaleFactor 2. The desktop hero is a playing video, so both desktop frames were taken when that video reached its sixth second; the video itself was not touched. Desktop frames downscaled to 1600x1000 WebP; phone frames cropped to their top 440 CSS px (780x880 WebP). Unedited and uncomposited.

Other client work