A new major version of MathJax typesetter has been recently released which
now enables to properly bundle the library with webpack.
So remove previous CDN use to get MathJax and use a self hosted version from
now on.
Related to T1680
Differential D3009
assets: Upgrade MathJax to 3.x and bundle it with webpack anlambert on Apr 10 2020, 3:34 PM. Authored by
Details
A new major version of MathJax typesetter has been recently released which So remove previous CDN use to get MathJax and use a self hosted version from Related to T1680 There is already a cypress test to check math typesetting in notebook rendering.
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D3009 (id=10677)Rebasing onto 0503cce23f... Current branch diff-target is up to date. Changes applied before testcommit 6573e07fdbfd8b9028822ca6b71fadcd056ef550 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Fri Apr 10 15:29:41 2020 +0200 assets: Upgrade MathJax to 3.x and bundle it with webpack A new major version of MathJax typesetter has been recently released which now enables to properly bundle the library with webpack. So remove previous CDN use to get MathJax and use a self hosted version from now on. Closes T1680 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/57/ for more details. Comment Actions MathJax is a very big library :/ Is it really worth it? Btw, is it loaded all the time, or just when needed to show a file? Comment Actions
Yes as some Jupyter notebook rendering look really sad without math typesetting.
The size of the used MathJax library is around 700 kb prior to gzip compression + 300 kb of web fonts,
It is only loaded when required of course, currently when rendering a jupyter notebook. Comment Actions Yes sure, but I meant to self-host it instead of using a CDN
if my memory serves me well, it's also hundreds of MBs in node_modules/
cool Comment Actions
We should self host as much as possible from my point of view.
Hopefully not anymore as the library has been greatly improved in terms of size in its 3.x version. Of course this will increase the swh-web wheel size from around 1 Mb but we are still under the Comment Actions Build is green Patch application report for D3009 (id=10695)Rebasing onto 0503cce23f... Current branch diff-target is up to date. Changes applied before testcommit 2a3c117fbd9b6ccbfec8e95293795d8bd6e5b421 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Fri Apr 10 15:29:41 2020 +0200 assets: Upgrade MathJax to 3.x and bundle it with webpack A new major version of MathJax typesetter has been recently released which now enables to properly bundle the library with webpack. So remove previous CDN use to get MathJax and use a self hosted version from now on. Closes T1680 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/58/ for more details. |