AI
AI
Web
Browser
Edge Computing
Ask anything about this article
Hi! I've read this article.
What would you like to know?
@farhan

onnxruntime-web optimizer to strip unused ops.\n4. Upload to a CDN with Cache-Control: max-age=31536000.\n5. Load via fetch and instantiate with ort.InferenceSession.\n\n### Risks and Counterpoints\n\n- Battery Drain – Continuous inference can drain mobile batteries quickly. Mitigation: pause models when the tab is backgrounded, use the Page Visibility API.\n- Model Theft – Shipping a model to the client makes it trivially copyable. Obfuscation helps but does not stop a determined adversary. Consider licensing or server-side verification for high-value IP.\n- Fragmented Performance – Not all devices support WebGPU yet. A fallback to WebGL2 or even a server-side API is still required for older browsers.\n\n### The Apple Factor\n\nApple’s HomeView tablet announcement featured a "Siri-AI" chip that runs a private-by-design language model on the device. While the tablet is a closed ecosystem, the underlying principle is the same: keep AI close to the user. Apple’s move validates the market’s appetite for on-device intelligence and puts pressure on web browsers to match native performance.\n\nDevelopers can now treat the browser as a first-class AI runtime, much like they treated it as a UI runtime a decade ago. The difference is that AI workloads are compute-heavy and privacy-sensitive, so the stakes are higher.\n\n### Where Do We Go From Here?\n\n1. Standardize Model Formats – The W3C should adopt ONNX or a similar open format as the \"HTML of AI\".\n2. Browser-Level Security Sandboxes – Just as CSP protects against XSS, we need a \"Model Execution Policy\" to limit CPU/GPU usage and data access.\n3. Community-Driven Benchmark Suites – Projects like \"web-ai-bench\" can provide a common yardstick for latency, accuracy, and power draw.\n\n### Bottom Line\n\nOn-device AI in browsers is no longer a novelty; it’s a practical tool that can reduce latency, protect privacy, and open new product possibilities. The five features highlighted above already prove the concept, and Apple’s hardware push signals that the industry will double down on this trend. If you’re a developer who still builds every AI feature as a remote API call, you are about to be left behind.\n\n> Takeaway: Embrace the browser as an AI execution environment now, or spend the next year rewriting your stack to catch up.