Yaj.loadCss(href, rel, type)

Loads a CSS dynamically and append it to the document.

Yaj.loadCss('http://someurl/file.css');

Note: The parameters rel and type are optional:

  • rel: The rel attribute. Defaults to "stylesheet"
  • type: The type attribute. Defaults to "text/css"

Go to index