title: Is there any way to load css and javascript from a string?
body: <p>I've seen many examples of loading CSS and javascript dynamically from a file.  <a href="http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml" rel="noreferrer">Here's a good example</a>.  But is there a way to load CSS or javascript as a string?  For example, something like:</p>
  
  <pre><code>var style = ".class { width:100% }"
  document.loadStyle(style);
  </code></pre>
  
  <p>Or something of that nature.</p>