News for hackers. Stuff that matters.
Re:jQuery 3.6.0 by wishinghand on Tuesday March 02, 2021 @02:35PM (#26319455)
One could also save document.querySelector to $ as a constant.
Re:jQuery 3.6.0 by vbezhenar on Tuesday March 02, 2021 @02:57PM (#26319764)
That would be very confusing for unsuspecting reader. Please use something different, I would suggest `qs` for `querySelector` and `qsa` for `querySelectorAll`.
Re:jQuery 3.6.0 by wishinghand on Tuesday March 02, 2021 @07:01PM (#26322988)
This method is not so much for multi-dev codebases but for single devs working on their personal or low-tech sites and are having a hard time letting the $('some-selector') syntax go.