News for hackers. Stuff that matters.
Re:Show HN: Password-protect a static HTML page by sodafountan on Wednesday June 14, 2017 @04:24PM (#14555831)
While it's true that jQuery is unnecessary, why does it matter? For one this is just a simple example to show off something cool that's possible that many people wouldn't initially think would be, I highly doubt that this is meant to be used seriously but more importantly it re-writes the entire page once the passphrase is found which overrides the jquery dependency and all other dependencies.

Why do people like to complain so much?

Re:Show HN: Password-protect a static HTML page by Gaelan on Wednesday June 14, 2017 @10:36PM (#14557545)
jQuery stays in the JS namespace even after its <script> is gone.
Re:Show HN: Password-protect a static HTML page by sodafountan on Thursday June 15, 2017 @09:43AM (#14560246)
You're right, I looked back and it does in fact stay in the namespace.

Disregard my comment.