Skip to content

Commit 2aadc48

Browse files
authored
Merge pull request #1177 from mathjax/rename-preload
Rename loader.preLoad() to loader.preLoaded() to make it clear tht this doesn't do any loading itself.
2 parents 6ec3975 + 207df66 commit 2aadc48

18 files changed

Lines changed: 21 additions & 21 deletions

File tree

components/mjs/a11y/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import base from 'speech-rule-engine/lib/mathmaps/base.json' with {type: 'json'}
99
import en from 'speech-rule-engine/lib/mathmaps/en.json' with {type: 'json'};
1010
import nemeth from 'speech-rule-engine/lib/mathmaps/nemeth.json' with {type: 'json'};
1111

12-
Loader.preLoad(
12+
Loader.preLoaded(
1313
'a11y/sre',
1414
'a11y/semantic-enrich',
1515
'a11y/explorer'

components/mjs/input/tex/tex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import './lib/tex.js';
33
import {registerTeX} from './register.js';
44
import {Loader} from '#js/components/loader.js';
55

6-
Loader.preLoad(
6+
Loader.preLoaded(
77
'input/tex-base',
88
'[tex]/ams',
99
'[tex]/newcommand',

components/mjs/mml-chtml-nofont/mml-chtml-nofont.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {loadFont} from '../output/chtml/chtml.js';
66
import '../ui/menu/menu.js';
77
import {checkSre} from '../a11y/util.js';
88

9-
Loader.preLoad(
9+
Loader.preLoaded(
1010
'loader', 'startup',
1111
'core',
1212
'input/mml',

components/mjs/mml-chtml/mml-chtml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {loadFont} from '../output/chtml/chtml.js';
66
import '../ui/menu/menu.js';
77
import {checkSre} from '../a11y/util.js';
88

9-
Loader.preLoad(
9+
Loader.preLoaded(
1010
'loader', 'startup',
1111
'core',
1212
'input/mml',

components/mjs/mml-svg-nofont/mml-svg-nofont.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {loadFont} from '../output/svg/svg.js';
66
import '../ui/menu/menu.js';
77
import {checkSre} from '../a11y/util.js';
88

9-
Loader.preLoad(
9+
Loader.preLoaded(
1010
'loader', 'startup',
1111
'core',
1212
'input/mml',

components/mjs/mml-svg/mml-svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {loadFont} from '../output/svg/svg.js';
66
import '../ui/menu/menu.js';
77
import {checkSre} from '../a11y/util.js';
88

9-
Loader.preLoad(
9+
Loader.preLoaded(
1010
'loader', 'startup',
1111
'core',
1212
'input/mml',

components/mjs/node-main/node-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ combineDefaults(MathJax.config, 'output', {font: 'mathjax-newcm'});
4343
/*
4444
* Mark the preloaded components
4545
*/
46-
Loader.preLoad('loader', 'startup', 'core', 'adaptors/liteDOM');
46+
Loader.preLoaded('loader', 'startup', 'core', 'adaptors/liteDOM');
4747

4848
if (path.basename(dir) === 'node-main') {
4949
CONFIG.paths.esm = CONFIG.paths.mathjax;

components/mjs/output/util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ export const OutputUtil = {
7878

7979
},
8080

81-
loadFont(startup, jax, font, preload) {
81+
loadFont(startup, jax, font, preloaded) {
8282
if (!MathJax.loader) {
8383
return startup;
8484
}
85-
if (preload) {
86-
MathJax.loader.preLoad(`[${font}]/${jax}`);
85+
if (preloaded) {
86+
MathJax.loader.preLoaded(`[${font}]/${jax}`);
8787
}
8888
return Package.loadPromise(`output/${jax}`).then(startup);
8989
}

components/mjs/startup/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {combineDefaults} from '#js/components/global.js';
44
import {dependencies, paths, provides, compatibility} from '../dependencies.js';
55
import {Loader, CONFIG} from '#js/components/loader.js';
66

7-
Loader.preLoad('loader', 'startup');
7+
Loader.preLoaded('loader', 'startup');
88

99
combineDefaults(MathJax.config.loader, 'dependencies', dependencies);
1010
combineDefaults(MathJax.config.loader, 'paths', paths);

components/mjs/tex-chtml-nofont/tex-chtml-nofont.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {loadFont} from '../output/chtml/chtml.js';
66
import '../ui/menu/menu.js';
77
import {checkSre} from '../a11y/util.js';
88

9-
Loader.preLoad(
9+
Loader.preLoaded(
1010
'core',
1111
'input/tex',
1212
'output/chtml',

0 commit comments

Comments
 (0)