Project

General

Profile

Actions

Improvements #10842

closed
RS RS

Eliminate jQuery usage

Improvements #10842: Eliminate jQuery usage

Added by Roel Standaert about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
08/24/2022
Due date:
% Done:

100%

Estimated time:

Description

Wt comes bundled with and uses jQuery. This has mostly become irrelevant with more modern JavaScript. We should eliminate our reliance on it so we can eventually remove jQuery from Wt.

RS Updated by Roel Standaert about 4 years ago Actions #1

Some notes for the implementer:

  • There's documentation on where our JavaScript is located and how it can be minified here: https://github.com/emweb/wt/blob/master/doc/development/javascript.md. This also contains some info about the useful -DDEBUG_JS=ON option. If -DDEBUG_JS=OFF, Wt will use the minified JavaScript (.min.js) for files in src/js, and bake it into the binaries. If it is enabled Wt will serve the non-minified version from the filesystem, which is more useful for rapid iteration. Similarly, for files in src/web/skeleton, Wt will serve the minified version by default, and serve the non-minified version if -DDEBUG=ON.
  • Some JavaScript can be found inline in Wt's source code. This JavaScript is typically passed to functions like:
    • doJavaScript
    • callJavaScript
    • setJavaScriptMember
    • the constructor of JSlot, or JSlot::setJavaScript
  • Uses of jQuery can be recognized by the use of $(...), $., jQuery(...), and jQuery.. Note that uses of WT.$(...) are different, this is a shorthand for Wt's getElement function.

RS Updated by Roel Standaert about 4 years ago Actions #2

  • Assignee set to Natan Pirard

NP Updated by Natan Pirard about 4 years ago Actions #3

  • Status changed from New to InProgress

RS Updated by Roel Standaert almost 4 years ago Actions #4

  • Target version changed from future to 4.10.0

RS Updated by Roel Standaert almost 4 years ago Actions #5

  • Target version changed from 4.10.0 to 4.9.0

RS Updated by Roel Standaert almost 4 years ago Actions #6

  • Status changed from InProgress to Review
  • Assignee changed from Natan Pirard to Korneel Dumon

RS Updated by Roel Standaert almost 4 years ago Actions #7

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Korneel Dumon to Roel Standaert
  • % Done changed from 0 to 100

RS Updated by Roel Standaert almost 4 years ago Actions #8

  • Status changed from Implemented @Emweb to Resolved

RS Updated by Roel Standaert over 3 years ago Actions #9

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom