Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...

    Module Shared/DataLoader

    Unified data fetching with fallback, caching, and retry logic. Replaces 6+ independent data loading implementations across dashboards.

    Features:

    • Local-first with remote fallback
    • localStorage caching with TTL
    • Retry with exponential backoff
    • CSV parsing via PapaParse (CSP-compatible) with simple fallback
    • JSON and text response handling

    Resilient OSINT data acquisition pipeline — multi-source intelligence data loading with local-first strategy, remote fallback, localStorage caching (TTL-based), retry with exponential backoff, and CSV/JSON parsing. Ensures continuous intelligence availability even during source outages.

    Platform reliability foundation — data loading resilience directly impacts user experience KPIs (page load time, error rate, Time to Interactive). Caching reduces infrastructure costs and enables offline-capable future PWA offering.

    Performance marketing enabler — fast, reliable data loading supports Core Web Vitals targets (LCP < 2.5s, FID < 100ms) critical for SEO ranking and user retention. Reliability metrics are a key selling point for B2G/enterprise prospects.

    Functions

    loadText
    loadCSV
    loadJSON
    parseCSV
    createDataSource