Adding Css and JS using the ClientDependency
As of version 4.1, the ClientDependencyFramework has been added to Umbraco.
This ensures that only 1 copy of a file is included, even if you have an include in several templates. It is used in the backend to ensure a small footprint.
You can also use it in the front-end yourself. Here's an example how to use it:
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<%@ Register Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" TagPrefix="CD" %>
Title
Your content here
