Bringing HTMX to Gemini: A Thought Experiment
Quick Detour: What's HTMX?
In case you've managed to dodge the web development bullet, you might be wondering what htmx is. It's been around, subtly influencing things, and only recently stepping into the limelight.
<body> <button hx-post="/click" hx-swap="outerHTML">Click Me!</button> </body>
Hit the button, and your page gets a mini makeover based on what the server says. Surprisingly, this little trick can replicate a bunch of functionality we see on the web today.
Gemini's beauty is in its simplicity. But introducing an htmx twist might be like adding a plot twist in a straightforward story. While it might deviate a bit from the original essence, it could open doors to a realm of interactivity without losing its core principle: no client-side scripting.
What About Going Offline?
Ah, the catch! With htmx, browsing every nook and cranny of Gemini offline might become a challenge. But the main content will still be there. And who knows, there might be ways to smartly preload interactive bits.
Imagining the Implementation
How would this look in action? Here’s a rough idea:
% /liked Enjoying this post?
Depending on the server's mood, it might swap it for "% /unlike Changed your mind?" or "% /unlike Liked it before? Un-like now?"
The "%" is akin to htmx's "hx-swap=innerHTML", but htmx has a lot more up its sleeve that could inspire Gemini's implementation.
This idea's still in its infancy, and it needs some feedback love. Is it genius? Is it too much? Let’s brainstorm!