5 ms·
The bad ID naming `d1` is convenient for the argument...
by incorrecthorse 1y ago
The bad ID naming `d1` is convenient for the argument...
- mock-possum 1y agoSo 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.