Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
17 lines
478 B
JavaScript
Executable file
17 lines
478 B
JavaScript
Executable file
'use strict';
|
|
// Loader plugin for loading CSS. Does not guarantee loading via onload
|
|
// watching, just inserts link tag.
|
|
define({
|
|
load: function(id, require, onload, config) {
|
|
if (config.isBuild) {
|
|
return onload();
|
|
}
|
|
|
|
var link = document.createElement('link');
|
|
link.type = 'text/css';
|
|
link.rel = 'stylesheet';
|
|
link.href = require.toUrl(id + '.css');
|
|
link.addEventListener('load', onload, false);
|
|
document.head.appendChild(link);
|
|
}
|
|
});
|