News for hackers. Stuff that matters.
Re:Show HN: kutty, jQuery-free intercooler.js by recursivedoubts on Friday May 15, 2020 @11:27AM (#23193274)
this is my covid project: a ground up, jQuery (and all other dependencies)-free rewrite of intercooler.js
Re:Show HN: kutty, jQuery-free intercooler.js by CSSer on Friday May 15, 2020 @03:07PM (#23196086)
I've been really interested in Intercooler.js, but the jQuery dependency bummed me out. This is a very cool project, and I highly appreciate you putting in the work here!

I do have one question. Is there a specific reason why you chose not to follow the standardized specification[0] of using data-* prefixes for HTML attributes? I realize it's pedantic, but I'd like to see this project receive wide support and usage. I'm concerned many potential users will criticize this.

[0]: https://html.spec.whatwg.org/multipage/dom.html#embedding-cu...

Edit: Nevermind, I just looked through the docs from the start. You do support it!

Re:Show HN: kutty, jQuery-free intercooler.js by recursivedoubts on Friday May 15, 2020 @03:14PM (#23196178)
:) Yep, do it the way you like.

Btw, check out the kt-classes attribute if you want to do some slick CSS transitions w/o javascript:

https://kutty.org/attributes/kt-classes/

Re:Show HN: kutty, jQuery-free intercooler.js by newx on Friday May 15, 2020 @01:09PM (#23194575)
Great idea! ++ for things that are jQuery-free. :)

One quick (fix/)suggestion: the kutty header on the top left, even being a clickable link to home as expected, changes the cursor to textual selection cursor upon hover instead of the usual link/hand/finger pointer. :)

Re:Show HN: kutty, jQuery-free intercooler.js by recursivedoubts on Friday May 15, 2020 @01:42PM (#23194982)
Yeah, there is an annoyance w sinon.js (the library I use for mocking AJAX) that breaks the top nav (I'm using the kt-boost attribute)

I'll fix it up.

update: fixed, thanks for calling me out for being lazy