var MODULES_PATH = 'http://modules.seajs.org/'
var isLocal = location.href.indexOf('/~lifesinger/') > 0

if (isLocal) {
  MODULES_PATH = 'http://' + location.host + '/~lifesinger/seajs/spm/modules/'
}

seajs.config({
  base: MODULES_PATH,

  alias: {
    'jquery': '1.7.2'
  }
});


define(function(require) {

  var test = require('../../test')
  var $ = require('jquery')

  $(document).ready(function() {

    var passed = false
    var type = 'error'

    var onreadyTime = new Date().getTime()

    // no image cache
    if (onloadTime === 0) {
      passed = true
      type = 'no image cache'
    }
    // image cache case
    else if (Math.abs(onreadyTime - onloadTime) < 2000) {
      passed = true
      type = 'has image cache'
    }

    test.assert(passed, type + ' diff = ' + Math.abs(onreadyTime - onloadTime))
    test.done()

  })

})

@@ -1,287 +1,4 @@
-var MODULES_PATH = 'http://modules.seajs.org/'%0Avar isLocal = location.href.indexOf('/~lifesinger/') %3E 0%0A%0Aif (isLocal) %7B%0A  MODULES_PATH = 'http://' + location.host + '/~lifesinger/seajs/spm/modules/'%0A%7D%0A%0Aseajs.config(%7B%0A  base: MODULES_PATH,%0A%0A  alias: %7B%0A    'jquery': '1.7.2'%0A  %7D%0A%7D);%0A%0A%0A
 defi
@@ -79,16 +79,35 @@
 re('
-jq
+../../third-party').jQ
 uery
-')
+%0A
 %0A%0A  

Remove hard code in dom-ready test case