Jacob @ebey.dev · Jan 5

Had some fun leaning about and playing with frames. You can target <a> and <form> at an iframe via target="name". iframe have two jobs, make requests & parse HTML. This means you can have an HTMX like library in (a sloppy) 1249 bytes that supports OOB swaps, pending indicators and disabled states.

9 likes 5 replies

?

Replies

Jacob · Jan 6

*692 bytes without pending / disabled states

Jacob · Jan 6

*952 bytes

Jacob · Jan 5

*1080 bytes

Jacob · Jan 5

You can play with it (and grab the snippet from the HTML) here: remix-effect.jacob-ebey.workers.dev

Rodrigo Dias · Jan 5

HTMX-like simplicity? Sounds intriguing for lightweight projects.