- Add a Zotero.wait() to translator caching, which I may or may not have tried before and which may or may not improve Firefox responsiveness during translator caching

- Only check first 1024 chars of translator file for JSON

Not going on the 2.0 branch
This commit is contained in:
Dan Stillman 2010-04-28 20:43:06 +00:00
parent 14b62e27e2
commit c558111269

View File

@ -78,6 +78,8 @@ Zotero.Translators = new function() {
}
}
}
Zotero.wait();
i++;
}
@ -226,7 +228,7 @@ Zotero.Translators = new function() {
*/
Zotero.Translator = function(file) {
// Maximum length for the info JSON in a translator
const MAX_INFO_LENGTH = 4096;
const MAX_INFO_LENGTH = 1024;
const infoRe = /{(?:(?:"(?:[^"\r\n]*(?:\\")?)*")*[^}"]*)*}/;
this.file = file;