code: function Resource(name, type, inline, element) {
    this.name = name;
    this.type = type;
    this.inline = inline;
    this.element = element;
  }
docs: Resources are bits of CSS and JavaScript that the page either includes
  directly or as a result of reading some remote resource.
  Resource should not be used directly, but instead through a sub-class like
  CssResource or ScriptResource.