Open.Core.Css.InsertLink C# (CSharp) Method

InsertLink() public static method

Inserts a CSS link within the document head (only if the CSS is not already present).
Thrown if a URL was not specified.
public static InsertLink ( string url ) : void
url string The URL of the CSS to load.
return void
        public static void InsertLink(string url)
        {
            if (!Helper.String.HasValue(url)) return;
            if (IsLinked(url)) return;
            jQuery
                .Select(Html.Head)
                .Append(string.Format("<link rel='Stylesheet' href='{0}' type='text/css' />", url));
        }