News for hackers. Stuff that matters.
Re:Locality of Behaviour (2020) by mock-possum on Thursday July 03, 2025 @11:17AM (#44455926)
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.

There are no comments on this comment yet.