top | item 44455756

(no title)

incorrecthorse | 8 months ago

The bad ID naming `d1` is convenient for the argument...

discuss

order

mock-possum|8 months ago

So is the assumption that the jquery is in a different file than the html tag - if you wanted to get real crazy about it you could have the script tag immediately after the button tag - you could even inline the onclick behavior with no jquery or htmx required. How’s that for locality?

I guess the point is not so much that you could do those things, but that it was fairly common during ‘the jQuery days’ to do as the author describes.