Project

General

Profile

Improvements #10842

Eliminate jQuery usage

Added by Roel Standaert 3 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
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.

#1

Updated by Roel Standaert 3 months ago

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.
#2

Updated by Roel Standaert 3 months ago

  • Assignee set to Natan Pirard
#3

Updated by Natan Pirard 3 months ago

  • Status changed from New to InProgress
#4

Updated by Roel Standaert 2 months ago

  • Target version changed from future to 4.10.0
#5

Updated by Roel Standaert about 2 months ago

  • Target version changed from 4.10.0 to 4.9.0
#6

Updated by Roel Standaert about 2 months ago

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

Updated by Roel Standaert about 2 months ago

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

Updated by Roel Standaert about 2 months ago

  • Status changed from Implemented @Emweb to Resolved

Also available in: Atom PDF