Loading third-party JS safely in a SPA — from browser mechanics to a shared utilityApril 14, 2026·FRONTEND