You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using an app (readium-js-viewer) which uses almond.js to load all modules. In index.html I am including the minified readium-js-viewer bundle, which includes almond.js:
However, every other time the app is not starting properly because the configuration is missing. It seems require.config() is sometimes being called too late, when the app already tries to access the config.
Using require.js, I could define var require = {waitSeconds: 0, config : ...} before loading require.js. However, this is not possible with almond.js.
Using almond.js, how am I supposed to make sure the config is being loaded before the app is trying to access it?
The text was updated successfully, but these errors were encountered:
I am using an app (readium-js-viewer) which uses almond.js to load all modules. In index.html I am including the minified readium-js-viewer bundle, which includes almond.js:
Afterwards I am calling require.config() to provide some basic configuration to readium modules:
However, every other time the app is not starting properly because the configuration is missing. It seems require.config() is sometimes being called too late, when the app already tries to access the config.
Using require.js, I could define var require = {waitSeconds: 0, config : ...} before loading require.js. However, this is not possible with almond.js.
Using almond.js, how am I supposed to make sure the config is being loaded before the app is trying to access it?
The text was updated successfully, but these errors were encountered: