code: function (name, req, onLoad, config) {
  //>>excludeStart("exclude", pragmas.optimizeSave);
  			var that = this,
  				url = req.toUrl(name);
  
  			// load content (css code)
  			text.get(url, function (data) {
  
  				if (config.isBuild) {
  					// in build-time: remember path to from generic.css to baseDir
  					if (!_genericCssToRootPath) {
  						_genericCssToRootPath = config.genericCssToRootPath;
  					}
  
  					_buildMap[name] = { path: url, data: data, write: config.writeGenericCss };
  
  				} else {
  					// in runtime (non-optimized): include css as style tag into document's head
  					var imports = [],
  						css = _replaceCssRelativeUrls(data, url, imports);
  
  					if (imports.length) {
  						// the css file has @import directives, we have to load each imported css-file explicitly,
  						// as browsers support @import directives only at the beginning of style tag.
  						var ctx = {
  							name: name,
  							css: css,
  							waiting: imports.length,
  							loaded: {}
  						};
  						imports.forEach(function (url) {
  							console.log("DEBUG: Loading css-file from @import: " + url);
  							text.get(url, function (data) {
  								var importUrl;
  								ctx.loaded[url] = data;
  								ctx.waiting -= 1;
  								if (ctx.waiting === 0) {
  									// last script has been loaded
  									for(importUrl in ctx.loaded) {
  										ctx.css = ctx.css.replace("/*>>import: " + url + "*/", ctx.loaded[url]);
  									}
  									that.helper.appendCssToPage(ctx.css, ctx.name);
  									onLoad();
  								}
  							});
  							return;
  						});
  					} else {
  						that.helper.appendCssToPage(css, name);
  					}
  				}
  				onLoad();
  				return;
  			});
  //>>excludeEnd("exclude");
  			onLoad();
  		}
docs: загрузка ресурса