Actions
Improvements #10842
closedEliminate jQuery usage
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.
Updated by Roel Standaert about 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 insrc/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 insrc/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
, orJSlot::setJavaScript
- Uses of jQuery can be recognized by the use of
$(...)
,$.
,jQuery(...)
, andjQuery.
. Note that uses ofWT.$(...)
are different, this is a shorthand for Wt'sgetElement
function.
Updated by Roel Standaert about 2 years ago
- Target version changed from future to 4.10.0
Updated by Roel Standaert about 2 years ago
- Target version changed from 4.10.0 to 4.9.0
Updated by Roel Standaert about 2 years ago
- Status changed from InProgress to Review
- Assignee changed from Natan Pirard to Korneel Dumon
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
Updated by Roel Standaert about 2 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Roel Standaert almost 2 years ago
- Status changed from Resolved to Closed
Actions