/*jshint evil: true */
/*global loadResources, lumbarLoader */
lumbarLoader.loadJS = function(moduleName, callback, options) {
  return loadResources(moduleName, 'js', callback, function(href, callback) {
    nextTick(function() {
      window.loadInContext(href.replace(/\.js$/, '-server.js'), callback);
    });
  }).length;
};
lumbarLoader.loadCSS = function(moduleName, callback, options) {
  loadResources(moduleName, 'css', callback, function(href) {
    $('head').append('<link rel="stylesheet" href="' + href + '">');
  });

  return 0;
};

/*jshint evil: true */
/*global loadResources, lumbarLoader */
lumbarLoader.loadJS = function(moduleName, callback, options) {
  return loadResources(moduleName, 'js', callback, function(href, callback) {
    window.loadInContext(href.replace(/\.js$/, '-server.js'), callback);
  }).length;
};
lumbarLoader.loadCSS = function(moduleName, callback, options) {
  loadResources(moduleName, 'css', callback, function(href) {
    $('head').append('<link rel="stylesheet" href="' + href + '">');
  });

  return 0;
};

Remove unnecessary nextTick in server loader