Skip to content

Eliminate use of jQuery #2764

@skiadas

Description

@skiadas

Quoting @ascholerChemeketa from the mailing list:

I would expect some, but not tons, of work to move to the latest version. That said, a better goal would be to excise it from PreTeXt's JS. At this point in web development, if you are not working with legacy code that is deeply invested in JQuery, or you do not have a clear plan for why you are going to rely on JQuery to do something way more cleanly than would be possible with vanilla JS, you probably shouldn't bother with it.

I would suggest ripping the uses out of core JS files. If WW wants/needs jquery or wants to leverage it, that code should import jquery directly. I'd be happy to help with that at some point (though not right now).

The advantage to having the local copy of jquery.min.js is presumably helping make HTML builds work offline. Other than that reason, it would be better to point to the correct version of JQuery from a CDN. (Assuming no one has modified the minified local version).

sticky and espy appear to be local forks of jquery based libraries (https://github.com/darsain/espy). I can't see where they are getting used.

Using this issue to keep track of progress. A first big step was done in https://github.com/PreTeXtBook/pretext/commits/master/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions