Majorly reworked Javascript runtime stuff to use on-demand loading.
- Runtime reduced to only AJAX library + very common functions, ~50K total
- Almost all specific functionality loaded on demand using synchronous XHR
- Crypto functions consolidated into crypto.js
- Much testing still to be done
- ACL editor known not working under firefox
- Some other components (autofill, theme/rank managers) not ported yet
// Some final stuff - loader routines, etc.
var onload_complete = false;
function mdgInnerLoader(e)
{
window.onkeydown = isKeyPressed;
window.onkeyup = function(e) { isKeyPressed(e); };
if ( typeof(dbx_set_key) == 'function')
{
dbx_set_key();
}
runOnloadHooks(e);
}
// Enano's main init function.
function enano_init(e)
{
mdgInnerLoader(e);
// we're loaded; set flags to true
onload_complete = true;
}
// don't init the page if less than IE6
if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH )
{
window.onload = enano_init;
}