-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
JSDelivr CDN not accessible in China #899
Comments
Convert
|
@ivysrono There are 3 types of files loaded from the CDN by default for browser ( https://github.com/naptha/tesseract.js/blob/master/docs/local-installation.md |
Users may use them in browsers but without own site, for example, userscript: https://greasyfork.org/scripts/482236/code |
If you do not want to host these files yourself, you can set I agree that having a default CDN that does not support China is not ideal, and would be open to adding some fallback for the default CDN in the future. However, if individual developers want to be sure that mainland China is supported in their applications, I believe that the existing options in Tesseract.js do allow them to do that. |
unpkg support langPath? |
Here is a working example that uses
This loads the LSTM-only data, so will only work with |
Thank you very much, I will try. |
@Balearica - just wanted to say thank you for saving me some time with that comment. Cheers 👍 |
Chinese users are reporting that JSDelivr--the CDN used by default for
corePath
/langPath
/workerPath
--does not work in China.I checked the JSDelivr issues, and the maintainers appear to have given up on supporting China.
Therefore, the only option would be to add a fallback CDN. I do not want to switch CDNs entirely unless there is an option that will be unequivocally better than JSDelivr for all users, globally. This is because other services that people report currently work in China have previously caused us to receive complaints due to outages (specifically, GitHub Pages and
unpkg
).Additionally, it's worth noting that unless any CDN specifically claims to have a relationship with the Chinese government, the fact that it currently works in China does not guarantee it will work in the future. JSDelivr claimed to support China when we started using it.
The text was updated successfully, but these errors were encountered: