diff --git a/isso/js/app/text/css.js b/isso/js/app/text/css.js new file mode 100644 index 0000000..ff9ba65 --- /dev/null +++ b/isso/js/app/text/css.js @@ -0,0 +1,5 @@ +define(["text!../../../css/isso.css"], function(isso) { + return { + inline: isso + }; +}); diff --git a/isso/js/build.count.js b/isso/js/build.count.js index 4ef39c6..1c5d266 100644 --- a/isso/js/build.count.js +++ b/isso/js/build.count.js @@ -2,7 +2,8 @@ baseUrl: ".", mainConfigFile: 'config.js', paths: { - "app/text/svg": "app/text/dummy" + "app/text/svg": "app/text/dummy", + "app/text/css": "app/text/dummy" }, name: "components/almond/almond", diff --git a/isso/js/embed.js b/isso/js/embed.js index 509e913..fde0140 100644 --- a/isso/js/embed.js +++ b/isso/js/embed.js @@ -3,16 +3,15 @@ * Distributed under the MIT license */ -require(["ready", "app/api", "app/isso", "app/count", "app/dom", "app/markup"], function(domready, api, isso, count, $, Mark) { +require(["ready", "app/api", "app/isso", "app/count", "app/dom", "app/markup", "app/text/css"], function(domready, api, isso, count, $, Mark, css) { "use strict"; domready(function() { - var css = $.new("link"); - css.type = "text/css"; - css.rel = "stylesheet"; - css.href = api.endpoint + "/css/isso.css"; - $("head").append(css); + var style = $.new("style"); + style.type = "text/css"; + style.textContent = css.inline; + $("head").append(style); count();