Blazor WASM for Chrome Extensions: Back from JS

Blazor WASM flopped hard in Chrome extensions—too slow. JS fixed it, but sucked to write. Now? It's circling back, smarter and faster.

Screenshot of Anaglyphohol Chrome extension converting video to red-cyan 3D anaglyph

Key Takeaways

  • Blazor WASM's .NET 10 optimizations kill startup delays, making it viable for Chrome extensions.
  • Custom ILGPU library enables C# GPU compute in browsers, outperforming third-party runtimes.
  • JS offers speed but sacrifices developer productivity; C# balances both now.

Blazor triumphs.

Again.

Picture this: a solo dev crafts Anaglyphohol, a Chrome extension that zaps 2D images and videos into trippy anaglyph 3D—red-cyan glasses required—powered by AI depth estimation on your GPU, all client-side, no servers, no nonsense. He builds it first in Blazor WebAssembly. Loves it. Clean C#, his jam. But Chrome extensions? They’re parasites, injecting into pages instantly. Blazor’s .NET 8 startup? Three to four seconds of dead air—loading runtime, JIT-compiling—before anything happens. On every. Single. Page.

That’s not enhancing; that’s annoying.

152 MB extension bloat doesn’t scream “lightweight” either. So he rewrites in vanilla JavaScript. Zippy load. Instant UI. Model loads quick enough. It ships, converts media on any DRM-free site, auto-tweaks for framerate. Works like a charm.

But—oh, the horror. No types. No IDE magic. Console.log hell. After C#’s safety net, JS feels like coding with oven mitts.

Why Ditch Blazor First?

Blazor WASM wasn’t extension material back then. Extensions demand zero-latency injection. You’re mid-scroll on YouTube; extension should pounce, not ponder.

“Chrome extensions aren’t web apps. They inject into other people’s pages. They need to be ready instantly. And Blazor WASM on .NET 8 added 3-4 seconds of startup on every page load.”

That’s the dev’s own words—bam, straight fire. Hits the nail: full apps tolerate boot-up; extensions can’t. Transformer.js for depth estimation? Best in-page, not workers. Full penalty every time.

He gripes about Google’s extension store too—demands your home address, phone, full name. Publicly. No PO box dodge. Solo dev’s crib now doxxable for a free tool. Charming, Google.

JS Victory? Short-Lived Nightmare

JS nailed performance. Shell ready before page renders. No framework fat. But maintainability? Trash. Bugs hide till runtime. No refactoring tools worth a damn.

Years in C# ecosystem—SpawnDev.BlazorJS, GPU libs, all .NET in browser. JS regresses him to caveman debugging. It shipped, sure. Supports red-cyan, green-magenta glasses. Real-time on any site.

Still, codebase screams “temporary fix.” He envisions more: temporal smoothing, custom effects. JS? No thanks.

Here’s my twist—no one else spots it: this mirrors Flash’s 2000s demise. Bloated, slow startup killed it; lean JS rose. Blazor’s arc? Reverse Flash. Microsoft trims the fat; C# creeps back, GPU-native. Bold call: by 2026, expect C#-powered extensions dominating AI browser tools. JS for glue, C# for brains.

Is Blazor WASM Finally Extension-Ready?

.NET 10 changes everything. Aggressive startup cuts—faster runtime, better AOT. Seconds shrink to imperceptible. Users won’t notice; magic happens.

Bigger: his SpawnDev.ILGPU. C# to WebGPU, WebGL, WASM, even CUDA. One code, multi-target. Then ILGPU.ML: native GPU neural nets. 200+ ONNX ops, no third-party cruft. Flash Attention. Streaming weights.

For Anaglyphohol? Depth model runs pure C#, GPU kernels instant—no init lag. Custom tricks: frame-smoothing from priors, kills jitter. Zero-copy pipelines. Post-effects on-GPU.

WebGPU unlocks real browser GPU. In a Chrome extension. C#.

Laughable how Microsoft iterated. .NET 8? Nah. .NET 10? Game on. JS interlude? Necessary gut-check.

The GPU Holy Grail

ILGPU’s killer: direct-to-GPU compile. Kernels hot on load. No ONNX Runtime warmup. Temporal depth? Pull prior frames, smooth video—no flicker plague.

Anaglyphohol evolves: DRM-free media anywhere, quality-scaling, glasses modes. Now, GPU post-processing dreams unlock. Imagine: depth-to-3D with motion blur, edge enhancement—all C#, browser-native.

Critic hat: third-party runtimes like ONNX? Bloated middlemen. Dev’s stack? Lean, custom. Corporate hype calls this “innovative”—it’s just engineering sanity.

Google’s privacy BS? Undercuts the win. Why force doxxing? Smells like control.

Why Does This Matter for Browser Devs?

C# in browser isn’t toy. Real compute. Extensions get AI without servers. Privacy win—no uploads. GPU everywhere via WebGPU.

Skeptics: WASM still heavier than JS. True, but shrinking. For complex logic? Types win longevity.

Dev’s loop—Blazor to JS to Blazor—proves tech maturity matters. Timing’s everything. Rush .NET 8? Fail. Wait for 10? Triumph.

Dry humor: JS fans, enjoy your dynamic errors. C# crowd: polish those GPUs.

Unique edge: parallels WebAssembly’s promise vs reality. Early WASM? Hype. Now? With ILGPU-like libs, it’s compute revolution. Prediction: Chrome extensions go hybrid—C# cores, JS shells. Mark it.


🧬 Related Insights

Frequently Asked Questions

What is Anaglyphohol?
Chrome extension for real-time 2D-to-3D anaglyph conversion using AI depth estimation on GPU. Works on images/videos, client-side only.

Can Blazor WASM handle Chrome extensions now?
Yes, with .NET 10’s fast startup and libs like ILGPU. Startup delay’s gone; full C# stacks viable.

Why switch back from JavaScript?
JS fast but unmaintainable—no types, weak tools. C# enables complex features like custom GPU kernels.

Priya Sundaram
Written by

Hardware and infrastructure reporter. Tracks GPU wars, chip design, and the compute economy.

Frequently asked questions

What is Anaglyphohol?
Chrome extension for real-time 2D-to-3D anaglyph conversion using AI depth estimation on GPU. Works on images/videos, client-side only.
Can Blazor WASM handle Chrome extensions now?
Yes, with .NET 10's fast startup and libs like ILGPU. Startup delay's gone; full C# stacks viable.
Why switch back from JavaScript?
JS fast but unmaintainable—no types, weak tools. C# enables complex features like custom GPU kernels.

Worth sharing?

Get the best AI stories of the week in your inbox — no noise, no spam.

Originally reported by Dev.to

Stay in the loop

The week's most important stories from theAIcatchup, delivered once a week.