I figured it out
After a bit of a mess, I came up with the following:
function require_css(href) { if (typeof href == 'undefined' || href.length == 0) return false; var link = dojo.create("link", { type : "text/css", rel : "stylesheet", href : href }); dojo.doc.getElementsByTagName("head")[0].appendChild(link); console.log("loading : css : "+ href); }
Thanks for the input guy .. I prefer the thirtydot method of mine: D ..
source share