-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NON local javascript files make developing JS impossible offline #14
Comments
I made a local version of all the JS files except for Mathjax. That is, there is now a local version of mathjax but our website doesn't use it. For some reason, using the local version causes a JS error. For everything else, you can see in config.js that we are now using a local minified copy:
The next step is I'll see if requireJS supports a FALLBACK method, so the browser can try both. |
I have verified that using arrays allows requirejs to try a backup if a certain resource fails. So now the code is
But I still can't close this issue because of Mathjax. Also, it's possible that requirejs or some other JS library calls upon an external resource, but we won't be able to verify that until we fix the Mathjax issue. |
Please configure requirejs to FALLBACK to a local version if an online version fails.
Or simpler, just make all JS libraries local.
The text was updated successfully, but these errors were encountered: