mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 05:05:55 +00:00
build custom layer of Dojo to speed up loading of tt-rss (refs #293)
This commit is contained in:
@@ -5,15 +5,18 @@
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.jaxer"]){
|
||||
dojo._hasResource["dojo.jaxer"]=true;
|
||||
if(!dojo._hasResource["dojo.jaxer"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
|
||||
dojo._hasResource["dojo.jaxer"] = true;
|
||||
dojo.provide("dojo.jaxer");
|
||||
if(typeof print=="function"){
|
||||
console.debug=Jaxer.Log.debug;
|
||||
console.warn=Jaxer.Log.warn;
|
||||
console.error=Jaxer.Log.error;
|
||||
console.info=Jaxer.Log.info;
|
||||
console.log=Jaxer.Log.warn;
|
||||
|
||||
if(typeof print == "function"){
|
||||
console.debug = Jaxer.Log.debug;
|
||||
console.warn = Jaxer.Log.warn;
|
||||
console.error = Jaxer.Log.error;
|
||||
console.info = Jaxer.Log.info;
|
||||
console.log = Jaxer.Log.warn;
|
||||
}
|
||||
onserverload=dojo._loadInit;
|
||||
|
||||
onserverload = dojo._loadInit;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user