Project

General

Profile

Actions

Improvements #10842

closed

Eliminate jQuery usage

Added by Roel Standaert over 2 years ago. Updated almost 2 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.

Actions #1

Updated by Roel Standaert over 2 years 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.
Actions #2

Updated by Roel Standaert over 2 years ago

  • Assignee set to Natan Pirard
Actions #3

Updated by Natan Pirard over 2 years ago

  • Status changed from New to InProgress
Actions #4

Updated by Roel Standaert about 2 years ago

  • Target version changed from future to 4.10.0
Actions #5

Updated by Roel Standaert about 2 years ago

  • Target version changed from 4.10.0 to 4.9.0
Actions #6

Updated by Roel Standaert about 2 years ago

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

Updated by Roel Standaert about 2 years ago

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

Updated by Roel Standaert about 2 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #9

Updated by Roel Standaert almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF