all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Corwin Brust <corwin@bru.st>
To: rms@gnu.org
Cc: philipk@posteo.net, 69132@debbugs.gnu.org,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#69132: [ELPA] Remove jQuery from elpa.gnu.org
Date: Sat, 17 Feb 2024 22:07:56 -0600	[thread overview]
Message-ID: <CAJf-WoSm9SFp+=CidsDncbjR+iMV3XfST+Rju45TmKZsWiBBLQ@mail.gmail.com> (raw)
In-Reply-To: <E1rbXr4-0003tG-2u@fencepost.gnu.org>

On Sat, Feb 17, 2024 at 9:28 PM Richard Stallman <rms@gnu.org> wrote:
>
> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> There is no special harm in using jquery.  It is free software,
> However, can we make elpa.gnu.org use NO Javascript?
> That would be better.
>

In essence: No, it's not possible.

Given someone thought they'd use it, we could add an additional option
(radio button, or smth) that would case the search to happen on the
server instead of via client-side script.   That said, there are
several reasons I feel it would be tragic to /replace/ a client side
function with a server side one, in this case.  Threeish paragraphs on
that and the fine one back to OPs point, I think.

Currently the websites for the ELPAs provide the ability to filter the
full package list that is displayed initially when (e.g.) this page
loads:

As stated: I think it is *not* possible to perform this type of
"client-side" search without using Javascript.  It would likely be
simple to create a search program on the web-server, however in this
case that actually makes it slightly harder for users to see the
search code involved (and way, way harder for them to change it, for
themselves).

The javascript must be sent to the user-agent to be evaluated, after
all.  In fact, this often means a user can, in addition to viewing and
saving the sources, use the javascript console and other so-called
"developer tools".  Developer tools are provided in some form by a
variety of popular browsers such as Firefox and the Chromium line,
among others.  Using these it is often possible to redefine functions
and such before (e.g.) pressing a search button.

At present, users who don't allow javascript execution must use the
browser's search-within-page functions then iterate the results, which
is just what I typically do when I'm looking for something with the
`list-packages' UI, so it should be familiar even to those not using
an in-emacs browser such as eww.

So, I think the status quo is fine, notwithstanding removing jquery.
In that regard, I think the argument was we don't use it enough
considering it's a fairly big javascript library to send to every user
that loads the page; given I've understood properly, I do agree.





  reply	other threads:[~2024-02-18  4:07 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14 19:41 bug#69132: [ELPA] Remove jQuery from elpa.gnu.org Philip Kaludercic
2024-02-14 23:05 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-15  8:12   ` Philip Kaludercic
2024-02-15 11:07     ` Philip Kaludercic
2024-02-15 15:37     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-17 18:25       ` Stefan Kangas
2024-02-17 20:57       ` Dmitry Gutov
2024-02-17 21:04         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-17 22:26           ` Dmitry Gutov
2024-02-17 22:44             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-17 22:49               ` Dmitry Gutov
2024-02-18  4:05                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-18 12:14                   ` Dmitry Gutov
2024-02-18 14:13                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-18 14:24                       ` Dmitry Gutov
2024-02-18 14:37                         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-18 14:38                           ` Dmitry Gutov
2024-02-18  3:28       ` Richard Stallman
2024-02-18  4:07         ` Corwin Brust [this message]
2024-02-18  4:20           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-21  2:56           ` Richard Stallman
2024-02-22 12:00             ` Philip Kaludercic
2024-02-25  3:13               ` Richard Stallman
2024-02-25 10:55                 ` Philip Kaludercic
2024-02-25 15:18                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-18 15:07         ` Philip Kaludercic
2024-02-18 18:19           ` Corwin Brust
2024-02-24 10:03 ` Philip Kaludercic
2024-02-25 10:06   ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-25 10:44     ` Philip Kaludercic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJf-WoSm9SFp+=CidsDncbjR+iMV3XfST+Rju45TmKZsWiBBLQ@mail.gmail.com' \
    --to=corwin@bru.st \
    --cc=69132@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=philipk@posteo.net \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.