small improvement. simplify resource preload. add hotjs.require, but not good as require.js